mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 05:44:45 +02:00
Updated bash completion script
This commit is contained in:
parent
ee7b5f87bb
commit
6143e7ed83
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user