mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
bash-completion: add missing option to systemd-cgls
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
parent
fabe596e7e
commit
bd97ae259d
@ -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 )
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user