mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(aa-log): update shell completion.
This commit is contained in:
parent
643a84997e
commit
e8c6befc78
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
_aa-log() {
|
_aa-log() {
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
local args=(-f -d -h)
|
local args=(-f -s -h)
|
||||||
local lastarg="${COMP_WORDS[$COMP_CWORD-1]}"
|
local lastarg="${COMP_WORDS[$COMP_CWORD-1]}"
|
||||||
COMPREPLY+=($(compgen -W "${args[*]}" -- ${cur}))
|
COMPREPLY+=($(compgen -W "${args[*]}" -- ${cur}))
|
||||||
if [[ $lastarg == "-f" ]]; then
|
if [[ $lastarg == "-f" ]]; then
|
||||||
|
|
|
@ -5,7 +5,7 @@ _aa-log() {
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
_arguments : \
|
_arguments : \
|
||||||
-f'[set a logfile or a prefix to the default log file]:FILE:__aa_files' \
|
-f'[set a logfile or a prefix to the default log file]:FILE:__aa_files' \
|
||||||
-d'[show dbus session event]' \
|
-s'[parse systemd dbus logs]' \
|
||||||
-h'[display help information]'
|
-h'[display help information]'
|
||||||
|
|
||||||
_values -C 'profile names' ${$(__aa_profiles):-""}
|
_values -C 'profile names' ${$(__aa_profiles):-""}
|
||||||
|
|
Loading…
Reference in a new issue