mirror of
https://github.com/systemd/systemd.git
synced 2025-11-23 04:24:11 +03:00
analyze: Add shell completion for dlopen-metadata
This commit is contained in:
committed by
Luca Boccassi
parent
b5d63191ca
commit
b1856a6c4a
@@ -78,6 +78,7 @@ _systemd_analyze() {
|
||||
[SECURITY]='security'
|
||||
[CONDITION]='condition'
|
||||
[INSPECT_ELF]='inspect-elf'
|
||||
[DLOPEN_METADATA]='dlopen-metadata'
|
||||
[PLOT]='plot'
|
||||
[ARCHITECTURES]='architectures'
|
||||
[FDSTORE]='fdstore'
|
||||
@@ -212,6 +213,14 @@ _systemd_analyze() {
|
||||
compopt -o filenames
|
||||
fi
|
||||
|
||||
elif __contains_word "$verb" ${VERBS[DLOPEN_METADATA]}; then
|
||||
if [[ $cur = -* ]]; then
|
||||
comps='--help --version --json=off --json=pretty --json=short'
|
||||
else
|
||||
comps=$( compgen -A file -- "$cur" )
|
||||
compopt -o filenames
|
||||
fi
|
||||
|
||||
elif __contains_word "$verb" ${VERBS[PLOT]}; then
|
||||
if [[ $cur = -* ]]; then
|
||||
comps='--help --version --system --user --global --no-pager --json=off --json=pretty --json=short --table --no-legend --scale-svg --detailed'
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
'timespan:Parse a systemd syntax timespan'
|
||||
'security:Analyze security settings of a service'
|
||||
'inspect-elf:Parse and print ELF package metadata'
|
||||
'dlopen-metadata:Parse and print ELF dlopen metadata'
|
||||
'has-tpm2:Report whether TPM2 support is available'
|
||||
'transient-settings:List transient settings for unit types'
|
||||
# log-level, log-target, service-watchdogs have been deprecated
|
||||
|
||||
Reference in New Issue
Block a user