Various zsh completion fixes (#43584)
This commit is contained in:
@@ -303,7 +303,7 @@ _arguments \
|
||||
'(-q --quiet)'{-q,--quiet}'[Do not show method call reply]'\
|
||||
'--verbose[Show result values in long format]' \
|
||||
'--xml-interface[Dump the XML description in introspect command]' \
|
||||
'--json=[Show result values in long format]:format:_busctl_get_json' \
|
||||
'--json=[Shows output formatted as JSON]:format:_busctl_get_json' \
|
||||
'-j[Show pretty json in interactive sessions, short json otherwise]' \
|
||||
'--expect-reply=[Expect a method call reply]:boolean:(1 0)' \
|
||||
'--auto-start=[Auto-start destination service]:boolean:(1 0)' \
|
||||
|
||||
@@ -168,7 +168,9 @@ _arguments -s \
|
||||
'(- *)'{-h,--help}'[Show help]' \
|
||||
'(- *)--version[Show package version]' \
|
||||
'*'{-p+,--property=}'[Show only properties by this name]:unit property' \
|
||||
'*-P+[Equivalent to --value --property=NAME]:unit property' \
|
||||
'(-a --all)'{-a,--all}'[Show all properties, including empty ones]' \
|
||||
'--value[When showing properties, only print the value]' \
|
||||
'--kill-whom=[Whom to send signal to]:killwhom:(main control all)' \
|
||||
'(-s --signal)'{-s+,--signal=}'[Which signal to send]:signal:_signals' \
|
||||
'(-H --host)'{-H+,--host=}'[Operate on remote host]:userathost:_sd_hosts_or_user_at_host' \
|
||||
@@ -179,4 +181,6 @@ _arguments -s \
|
||||
'--no-ask-password[Do not ask for system passwords]' \
|
||||
'(-n --lines)'{-n+,--lines=}'[Number of journal entries to show]' \
|
||||
'(-o --output)'{-o+,--output=}'[Change journal output mode]:output modes:_sd_outputmodes' \
|
||||
'--json=[Shows output formatted as JSON]:format:(pretty short off)' \
|
||||
'-j[Equivalent to --json=pretty on TTY, --json=short otherwise]' \
|
||||
'*::loginctl command:_loginctl_commands'
|
||||
|
||||
@@ -560,6 +560,7 @@ _sys_arguments=(
|
||||
'--failed[Show failed units]'
|
||||
'--timestamp=[Change format of printed timestamps]:style:_systemctl_timestamp'
|
||||
'--when=[Schedule halt/power-off/reboot/kexec action after a certain timestamp]:timestamp:(show cancel auto)'
|
||||
'--kernel-cmdline[Append to the kernel command line when loading]:cmdline:'
|
||||
'--kernel-cmdline-reuse[Reuse the current kernel command line when loading the kexec kernel]'
|
||||
)
|
||||
_arguments -s "$_sys_arguments[@]" \
|
||||
|
||||
@@ -71,6 +71,7 @@ _arguments -s \
|
||||
'--tpm2-argon2id-parallelism=[Argon2id parallelism]:threads:' \
|
||||
'--tpm2-pcrs=[Specify TPM2 PCRs to seal against]:PCRs:' \
|
||||
'--tpm2-public-key=[Enroll signed TPM2 PCR policy against PEM public key]:public key file:_files' \
|
||||
'--tpm2-public-key-policyref=[Enroll signed TPM2 PCR policy with the specified policy reference]:policyref:' \
|
||||
'--tpm2-public-key-pcrs=[Enroll signed TPM2 PCR policy for specified TPM2 PCRs]:PCRs:' \
|
||||
'--tpm2-signature=[Validate public key enrollment works with JSON signature file]:signature file:_files' \
|
||||
'--tpm2-pcrlock=[Specify pcrlock policy to lock against]:pcrlock file:_files' \
|
||||
|
||||
@@ -20,6 +20,7 @@ _arguments \
|
||||
'--image=[Operate on disk image as filesystem root]:image' \
|
||||
'--image-policy=[Specify disk image dissection policy]:policy' \
|
||||
'--replace=[Treat arguments as replacement for PATH]:PATH' \
|
||||
'(--cat-config --tldr)--inline[Treat arguments as configuration lines]'
|
||||
'(--cat-config --tldr)'{-n,--dry-run}'[Just print what would be done]' \
|
||||
'--no-pager[Do not pipe output into a pager]' \
|
||||
'*::files:_files -g "*.conf"'
|
||||
|
||||
Reference in New Issue
Block a user