Updated bash completion script

This commit is contained in:
mboelen 2016-04-25 20:04:44 +02:00
parent ee7b5f87bb
commit 6143e7ed83
1 changed files with 9 additions and 2 deletions

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 'audit --help --info --version' -- "$cur" ) )
;;
esac
@ -27,6 +27,13 @@ _lynis()
fi
case $prev in
audit)
COMPREPLY=( $( compgen -W 'dockerfile system ' -- "$cur" ) )
;;
show)
COMPREPLY=( $( compgen -W 'help version ' -- "$cur" ) )
;;
--auditor)
COMPREPLY=( '"Mr. Auditor"' )
return 0
@ -58,7 +65,7 @@ _lynis()
*)
COMPREPLY=( $( compgen -W ' \
--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