Updated bash completion script

This commit is contained in:
mboelen 2016-04-25 20:04:44 +02:00
parent ee7b5f87bb
commit 6143e7ed83

View File

@ -19,7 +19,7 @@ _lynis()
COMPREPLY=( $( compgen -W '--check-all --help --info --version' -- "$cur" ) ) COMPREPLY=( $( compgen -W '--check-all --help --info --version' -- "$cur" ) )
;; ;;
*) *)
COMPREPLY=( $( compgen -W '--check-all --help --info --version' -- "$cur" ) ) COMPREPLY=( $( compgen -W 'audit --help --info --version' -- "$cur" ) )
;; ;;
esac esac
@ -27,6 +27,13 @@ _lynis()
fi fi
case $prev in case $prev in
audit)
COMPREPLY=( $( compgen -W 'dockerfile system ' -- "$cur" ) )
;;
show)
COMPREPLY=( $( compgen -W 'help version ' -- "$cur" ) )
;;
--auditor) --auditor)
COMPREPLY=( '"Mr. Auditor"' ) COMPREPLY=( '"Mr. Auditor"' )
return 0 return 0
@ -58,7 +65,7 @@ _lynis()
*) *)
COMPREPLY=( $( compgen -W ' \ COMPREPLY=( $( compgen -W ' \
--auditor --cronjob --debug --quick --quiet --logfile --no-colors --no-log --pentest --reverse-colors \ --auditor --cronjob --debug --quick --quiet --logfile --no-colors --no-log --pentest --reverse-colors \
--tests --tests-category --upload --view-categories' -- "$cur" ) ) --tests --tests-category --upload --verbose --view-categories' -- "$cur" ) )
;; ;;
esac esac