diff options
author | Nishal Kulkarni <nishalkulkarni@gmail.com> | 2022-03-18 12:29:36 +0530 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-03-18 09:19:56 +0000 |
commit | f1c70ed13ddadeaca0f480f24be543b4e181a1ec (patch) | |
tree | c53a99b6f84c336fb23cc3ed049869ecd7eb2879 /shell-completion | |
parent | c3e7fba07c19f232f5945c07e7cc730986615adf (diff) | |
download | systemd-f1c70ed13ddadeaca0f480f24be543b4e181a1ec.tar.gz |
shell-completion: Add completion in bootctl
Added new completion for `--make-machine-id-directory`
provideds 3 options(yes no auto)
Closes: #22308
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/bootctl | 5 | ||||
-rw-r--r-- | shell-completion/zsh/_bootctl | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/shell-completion/bash/bootctl b/shell-completion/bash/bootctl index 190e3d33f5..11062e1b7a 100644 --- a/shell-completion/bash/bootctl +++ b/shell-completion/bash/bootctl @@ -32,7 +32,7 @@ _bootctl() { local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} local -A OPTS=( [STANDALONE]='-h --help -p --print-esp-path -x --print-boot-path --version --no-variables --no-pager --graceful' - [ARG]='--esp-path --boot-path' + [ARG]='--esp-path --boot-path --make-machine-id-directory' ) if __contains_word "$prev" ${OPTS[ARG]}; then @@ -45,6 +45,9 @@ _bootctl() { fi compopt -o filenames ;; + --make-machine-id-directory) + comps="yes no auto" + ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0 diff --git a/shell-completion/zsh/_bootctl b/shell-completion/zsh/_bootctl index 87ecbe37c3..eef48d71d9 100644 --- a/shell-completion/zsh/_bootctl +++ b/shell-completion/zsh/_bootctl @@ -69,6 +69,7 @@ _arguments \ '--boot-path=[Path to the $BOOT partition]:path:_directories' \ {-p,--print-esp-path}'[Print path to the EFI system partition]' \ {-x,--print-boot-path}'[Print path to the $BOOT partition]' \ + '--make-machine-id-directory=[Control creation and deletion of the top-level machine ID directory.]:options:(yes no auto)' \ '--no-variables[Do not touch EFI variables]' \ '--no-pager[Do not pipe output into a pager]' \ '--graceful[Do not fail when locating ESP or writing fails]' \ |