From b4f91f2ba354c16dc23111cc231010c975c717a2 Mon Sep 17 00:00:00 2001 From: Carlos Morata Castillo Date: Sat, 10 Jan 2015 02:08:21 +0100 Subject: Updates in bash autocompletions Hi, I did ./check-undocumented.sh -b (my script just submitted) and checked the results. Cheers. --- shell-completion/bash/coredumpctl | 2 +- shell-completion/bash/hostnamectl | 2 +- shell-completion/bash/journalctl | 8 ++++++-- shell-completion/bash/localectl | 2 +- shell-completion/bash/loginctl | 7 ++++--- shell-completion/bash/systemd-analyze | 2 +- shell-completion/bash/systemd-cgtop | 3 ++- shell-completion/bash/timedatectl | 2 +- 8 files changed, 17 insertions(+), 11 deletions(-) (limited to 'shell-completion') diff --git a/shell-completion/bash/coredumpctl b/shell-completion/bash/coredumpctl index e23152d6a..609167750 100644 --- a/shell-completion/bash/coredumpctl +++ b/shell-completion/bash/coredumpctl @@ -37,7 +37,7 @@ __journal_fields=(MESSAGE{,_ID} PRIORITY CODE_{FILE,LINE,FUNC} _coredumpctl() { local i verb comps local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} - local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field' + local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field -1' local -A VERBS=( [LIST]='list' diff --git a/shell-completion/bash/hostnamectl b/shell-completion/bash/hostnamectl index 7a0850dbe..9ad52e03b 100644 --- a/shell-completion/bash/hostnamectl +++ b/shell-completion/bash/hostnamectl @@ -28,7 +28,7 @@ _hostnamectl() { local i verb comps local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} local OPTS='-h --help --version --transient --static --pretty - --no-ask-password -H --host' + --no-ask-password -H --host --machine' if [[ $cur = -* ]]; then COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") ) diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index 2efa1000e..1387524a8 100644 --- a/shell-completion/bash/journalctl +++ b/shell-completion/bash/journalctl @@ -44,11 +44,15 @@ _journalctl() { --disk-usage -f --follow --header -h --help -l --local --new-id128 -m --merge --no-pager --no-tail -q --quiet --setup-keys --this-boot --verify - --version --list-catalog --update-catalog --list-boots' + --version --list-catalog --update-catalog --list-boots + --show-cursor --dmesg -k --pager-end -e -r --reverse + --utc -x --catalog --no-full --force --dump-catalog + --flush' [ARG]='-b --boot --this-boot -D --directory --file -F --field -o --output -u --unit --user-unit -p --priority' [ARGUNKNOWN]='-c --cursor --interval -n --lines --since --until - --verify-key' + --after-cursor --verify-key --identifier + --root --machine' ) if __contains_word "$prev" ${OPTS[ARG]} ${OPTS[ARGUNKNOWN]}; then diff --git a/shell-completion/bash/localectl b/shell-completion/bash/localectl index c9e22af2a..e0c06a794 100644 --- a/shell-completion/bash/localectl +++ b/shell-completion/bash/localectl @@ -34,7 +34,7 @@ _localectl() { local i verb comps locale_vals local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} local OPTS='-h --help --version --no-convert --no-pager --no-ask-password - -H --host' + -H --host --machine' if __contains_word "$prev" $OPTS; then case $prev in diff --git a/shell-completion/bash/loginctl b/shell-completion/bash/loginctl index e7adb93f9..7a083d287 100644 --- a/shell-completion/bash/loginctl +++ b/shell-completion/bash/loginctl @@ -33,9 +33,10 @@ _loginctl () { local i verb comps local -A OPTS=( - [STANDALONE]='--all -a --help -h --no-pager --privileged -P --version' - [ARG]='--host -H --kill-who --property -p --signal -s' - ) + [STANDALONE]='--all -a --help -h --no-pager --privileged -P --version + --no-legend --no-ask-password -l --full' + [ARG]='--host -H --kill-who --property -p --signal -s --machine' + ) if __contains_word "$prev" ${OPTS[ARG]}; then case $prev in diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index 77d1b542a..00947029c 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -36,7 +36,7 @@ _systemd_analyze() { local -A OPTS=( [STANDALONE]='--help --version --system --user --from-pattern --to-pattern --order --require --no-pager' - [ARG]='-H --host -M --machine' + [ARG]='-H --host -M --machine --fuzz --man' ) local -A VERBS=( diff --git a/shell-completion/bash/systemd-cgtop b/shell-completion/bash/systemd-cgtop index d7ea42d91..50464990a 100644 --- a/shell-completion/bash/systemd-cgtop +++ b/shell-completion/bash/systemd-cgtop @@ -30,7 +30,8 @@ _systemd_cgtop() { local -A OPTS=( [STANDALONE]='-h --help --version -p -t -c -m -i -b --batch -n --iterations -d --delay' - ) + [ARG]='--cpu --depth' + ) _init_completion || return diff --git a/shell-completion/bash/timedatectl b/shell-completion/bash/timedatectl index 1a0acc6c7..a57fbd254 100644 --- a/shell-completion/bash/timedatectl +++ b/shell-completion/bash/timedatectl @@ -28,7 +28,7 @@ _timedatectl() { local i verb comps local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} local OPTS='-h --help --version --adjust-system-clock --no-pager - --no-ask-password -H --host' + --no-ask-password -H --host --machine' if __contains_word "$prev" $OPTS; then case $prev in -- cgit v1.2.3