chiark / gitweb /
Updates in bash autocompletions
authorCarlos Morata Castillo <cmc809@inlumine.ual.es>
Sat, 10 Jan 2015 01:08:21 +0000 (02:08 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 29 Jan 2015 05:44:30 +0000 (00:44 -0500)
Hi,

I did ./check-undocumented.sh -b (my script just submitted) and checked
the results.

Cheers.

shell-completion/bash/coredumpctl
shell-completion/bash/hostnamectl
shell-completion/bash/journalctl
shell-completion/bash/localectl
shell-completion/bash/loginctl
shell-completion/bash/systemd-analyze
shell-completion/bash/systemd-cgtop
shell-completion/bash/timedatectl

index e23152d6a85b463baf270be560e7d66d7c224a37..60916775068fe5cd0e36f18c9cd0405c8d1ff03a 100644 (file)
@@ -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'
index 7a0850dbe44c67c7faa6121cf2e005401b2a737f..9ad52e03b481c56f6cbbe8d230093347b0ca08f4 100644 (file)
@@ -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") )
index 2efa1000e2aa650b1899531d779aa0a910ac2253..1387524a858cc22decbe424d2ae9538972d0bfa4 100644 (file)
@@ -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
index c9e22af2aa162a9b9aed99fe190075b8c35c99ad..e0c06a794ed23f34f12e4c92de234612021517b3 100644 (file)
@@ -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
index e7adb93f97b03599692f6ebc9fea2caa73b4a2fb..7a083d28756cde70594649ea676402b589bebdec 100644 (file)
@@ -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
index 77d1b542a238efd9669ece79d1b163170544b7d2..00947029c677593229d4440a1b64f2355f64cbde 100644 (file)
@@ -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=(
index d7ea42d9108a7599d67eb41b3fe6eaa51e00a696..50464990ab56f95b3ebde1dfbf92fd3f9eb96e60 100644 (file)
@@ -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
 
index 1a0acc6c7c089793d59d8de4d895cb51c47bc0c7..a57fbd25466ffbd5479ddf25ea98f53c5121b309 100644 (file)
@@ -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