From fabe596e7e4d373a2cf8984ba2bed1deedb80d15 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Thu, 21 Dec 2023 23:07:05 +0200 Subject: [PATCH 1/3] bash-completion: add missing option to systemd-cat Signed-off-by: Arthur Zamarin --- shell-completion/bash/systemd-cat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-completion/bash/systemd-cat b/shell-completion/bash/systemd-cat index b209140804..e1e6002172 100644 --- a/shell-completion/bash/systemd-cat +++ b/shell-completion/bash/systemd-cat @@ -30,7 +30,7 @@ _systemd_cat() { local -A OPTS=( [STANDALONE]='-h --help --version' - [ARG]='-t --identifier -p --priority --level-prefix' + [ARG]='-t --identifier -p --priority --stderr-priority --level-prefix' ) _init_completion || return @@ -40,7 +40,7 @@ _systemd_cat() { --identifier|-t) comps='' ;; - --priority|-p) + --priority|-p|--stderr-priority) comps='emerg alert crit err warning notice info debug' ;; --level-prefix) From bd97ae259d13653b1750d8f1c8bd0b49740366b4 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Thu, 21 Dec 2023 23:13:35 +0200 Subject: [PATCH 2/3] bash-completion: add missing option to systemd-cgls Signed-off-by: Arthur Zamarin --- shell-completion/bash/systemd-cgls | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell-completion/bash/systemd-cgls b/shell-completion/bash/systemd-cgls index 8dda5a82dd..f80bea7353 100644 --- a/shell-completion/bash/systemd-cgls +++ b/shell-completion/bash/systemd-cgls @@ -44,7 +44,7 @@ _systemd_cgls() { local -A OPTS=( [STANDALONE]='-h --help --version --all -l --full -k --no-pager --xattr=no --cgroup-id=no' - [ARG]='-M --machine -u --unit --user-unit' + [ARG]='-c --cgroup-id -M --machine -u --unit --user-unit -x --xattr' ) _init_completion || return @@ -57,6 +57,9 @@ _systemd_cgls() { --unit|-u) comps=$( __get_units_have_cgroup --system ) ;; + -c|--cgroup-id|-x|--xattr) + comps='yes no' + ;; --user-unit) comps=$( __get_units_have_cgroup --user ) ;; From 8546a4af00b17471354e8874f4851d8ad9906ca1 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Thu, 21 Dec 2023 23:23:13 +0200 Subject: [PATCH 3/3] bash-completion: add missing option to systemd-confext Signed-off-by: Arthur Zamarin --- shell-completion/bash/systemd-confext | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/shell-completion/bash/systemd-confext b/shell-completion/bash/systemd-confext index c8eca3b2cb..09d114611c 100644 --- a/shell-completion/bash/systemd-confext +++ b/shell-completion/bash/systemd-confext @@ -30,9 +30,12 @@ _systemd-confext() { [STANDALONE]='-h --help --version --no-pager --no-legend + --no-reload --force' [ARG]='--root - --json' + --json + --noexec + --image-policy' ) local -A VERBS=( @@ -54,6 +57,12 @@ _systemd-confext() { --json) comps='pretty short off' ;; + --noexec) + comps='false true' + ;; + --image-policy) + comps='' + ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0