teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0170-shell-completion-systemctl-add-no-warn.patch

ac3a84
From 282bb5b70e6ff146ba81fea82d85d1e3f0cebc77 Mon Sep 17 00:00:00 2001
ac3a84
From: Yu Watanabe <watanabe.yu+github@gmail.com>
ac3a84
Date: Tue, 13 Dec 2022 09:05:11 +0900
ac3a84
Subject: [PATCH] shell-completion: systemctl: add --no-warn
ac3a84
ac3a84
(cherry picked from commit 93b0ec8bc533e8e8245560152c57e9c5dfb906bf)
ac3a84
ac3a84
Related: #2141979
ac3a84
---
ac3a84
 shell-completion/bash/systemctl.in | 2 +-
ac3a84
 shell-completion/zsh/_systemctl.in | 1 +
ac3a84
 2 files changed, 2 insertions(+), 1 deletion(-)
ac3a84
ac3a84
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
ac3a84
index f935960c77..3c64467e2f 100644
ac3a84
--- a/shell-completion/bash/systemctl.in
ac3a84
+++ b/shell-completion/bash/systemctl.in
ac3a84
@@ -128,7 +128,7 @@ _systemctl () {
ac3a84
         [STANDALONE]='--all -a --reverse --after --before --defaults --force -f --full -l --global
ac3a84
                              --help -h --no-ask-password --no-block --legend=no --no-pager --no-reload --no-wall --now
ac3a84
                              --quiet -q --system --user --version --runtime --recursive -r --firmware-setup
ac3a84
-                             --show-types --plain --failed --value --fail --dry-run --wait'
ac3a84
+                             --show-types --plain --failed --value --fail --dry-run --wait --no-warn'
ac3a84
         [ARG]='--host -H --kill-whom --property -p --signal -s --type -t --state --job-mode --root
ac3a84
                              --preset-mode -n --lines -o --output -M --machine --message --timestamp --check-inhibitors'
ac3a84
     )
ac3a84
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
ac3a84
index d471743030..2811582236 100644
ac3a84
--- a/shell-completion/zsh/_systemctl.in
ac3a84
+++ b/shell-completion/zsh/_systemctl.in
ac3a84
@@ -480,6 +480,7 @@ _arguments -s \
ac3a84
     '--show-types[When showing sockets, show socket type]' \
ac3a84
     '--check-inhibitors[Specify if inhibitors should be checked]:mode:_systemctl_check_inhibitors' \
ac3a84
     {-q,--quiet}'[Suppress output]' \
ac3a84
+    '--no-warn[Suppress several warnings shown by default]' \
ac3a84
     '--no-block[Do not wait until operation finished]' \
ac3a84
     '--legend=no[Do not print a legend, i.e. the column headers and the footer with hints]' \
ac3a84
     '--no-pager[Do not pipe output into a pager]' \