2c98717ebc
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2648|7|2641|6|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/348//ansiblelint">Evolix » ansible-roles » unstable #348</a>
gitea/ansible-roles/pipeline/head This commit looks good
13 lines
364 B
Bash
13 lines
364 B
Bash
#!/usr/bin/env bash
|
|
|
|
_check_local_dynamic_completion() {
|
|
local cur;
|
|
cur=${COMP_WORDS[COMP_CWORD]};
|
|
COMPREPLY=();
|
|
COMPREPLY=( $( compgen -W '$(grep "\[check_" -Rs /etc/nagios/ | grep -vE "^[[:blank:]]*#" | awk -F"[\\\[\\\]=]" "{print \$2}" | sed "s/check_//" | sort | uniq)' -- $cur ) );
|
|
}
|
|
|
|
complete -F _check_local_dynamic_completion check-local
|
|
|
|
|