mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
chore(aa-log): update shell completion.
This commit is contained in:
parent
1048283b5c
commit
0b412b5713
@ -15,7 +15,7 @@ import (
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
const usage = `aa-log [-h] [--systemd] [--file file] [--rules] [profile]
|
||||
const usage = `aa-log [-h] [--systemd] [--file file] [--rules | --raw] [profile]
|
||||
|
||||
Review AppArmor generated messages in a colorful way. Supports logs from
|
||||
auditd, systemd, syslog as well as dbus session events.
|
||||
|
@ -3,7 +3,7 @@
|
||||
_aa-log() {
|
||||
COMPREPLY=()
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
local args=(-f --file -s --systemd -h --help)
|
||||
local args=(-f --file -s --systemd -r --rules -R -raw -h --help)
|
||||
local lastarg="${COMP_WORDS[$COMP_CWORD-1]}"
|
||||
COMPREPLY+=($(compgen -W "${args[*]}" -- ${cur}))
|
||||
if [[ $lastarg == "-f" ]]; then
|
||||
|
@ -6,6 +6,8 @@ _aa-log() {
|
||||
_arguments : \
|
||||
{-f,--file}'[set a logfile or a suffix to the default log file]:FILE:__aa_files' \
|
||||
{-s,--systemd}'[parse systemd logs from journalctl]' \
|
||||
{-r,--rules}'[convert the log into AppArmor rules]' \
|
||||
{-R,--raw}'[print the raw log without any formatting]' \
|
||||
{-h,--help}'[display help information]'
|
||||
|
||||
_values -C 'profile names' ${$(__aa_profiles):-""}
|
||||
|
Loading…
Reference in New Issue
Block a user