blob: 5f955752efdcbcab935fd0098db28b53d538c388 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Completion tools for Nagscripts suite
_nagscripts_objects() {
local object
while read -r object ; do
[[ $object == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue
COMPREPLY[${#COMPREPLY[@]}]=$object
done < <(cat <(nagios-data-search .) <(nagios-data-search -s .))
return
}
complete -F _nagscripts_objects -o default \
nagios-acknowledge \
nagios-data-search \
nagios-downstream-list \
nagios-downtime \
nagios-exists \
nagios-force-check
|