]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - shell-completion/bash/systemd-analyze
Merge pull request #14488 from yuwata/networkctl-show-logs
[thirdparty/systemd.git] / shell-completion / bash / systemd-analyze
index cd17c7e9632aeeb6aa5a9afa525f4c57f67c7749..986dad5d5892d377ebdd02e5fc775b21cfda7352 100644 (file)
@@ -55,14 +55,11 @@ _systemd_analyze() {
     )
 
     local -A VERBS=(
-        [STANDALONE]='time blame plot dump unit-paths calendar timespan timestamp condition'
+        [STANDALONE]='time blame plot dump unit-paths exit-status condition calendar timestamp timespan'
         [CRITICAL_CHAIN]='critical-chain'
         [DOT]='dot'
-        [LOG_LEVEL]='log-level'
-        [LOG_TARGET]='log-target'
         [VERIFY]='verify'
         [SECCOMP_FILTER]='syscall-filter'
-        [SERVICE_WATCHDOGS]='service-watchdogs'
         [CAT_CONFIG]='cat-config'
         [SECURITY]='security'
     )
@@ -119,20 +116,6 @@ _systemd_analyze() {
             comps='--help --version --system --user --global --from-pattern --to-pattern --order --require'
         fi
 
-    elif __contains_word "$verb" ${VERBS[LOG_LEVEL]}; then
-        if [[ $cur = -* ]]; then
-            comps='--help --version --system --user'
-        else
-            comps='debug info notice warning err crit alert emerg'
-        fi
-
-    elif __contains_word "$verb" ${VERBS[LOG_TARGET]}; then
-        if [[ $cur = -* ]]; then
-            comps='--help --version --system --user'
-        else
-            comps='console journal kmsg journal-or-kmsg null'
-        fi
-
     elif __contains_word "$verb" ${VERBS[SECCOMP_FILTER]}; then
         if [[ $cur = -* ]]; then
             comps='--help --version --no-pager'
@@ -148,13 +131,6 @@ _systemd_analyze() {
             compopt -o filenames
         fi
 
-    elif __contains_word "$verb" ${VERBS[SERVICE_WATCHDOGS]}; then
-        if [[ $cur = -* ]]; then
-            comps='--help --version --system --user'
-        else
-            comps='on off'
-        fi
-
     elif __contains_word "$verb" ${VERBS[CAT_CONFIG]}; then
         if [[ $cur = -* ]]; then
             comps='--help --version --root --no-pager'