diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-14 01:37:58 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-12-14 08:55:38 +0100 |
commit | f675a1f00595477968908fd1dd58a868422d83a3 (patch) | |
tree | 5a5d317cc50ed1773e65cb14f4ff3e60a1b2386f /shell-completion | |
parent | 58493c66716e0300854d64a05256248ebdbaa8ef (diff) | |
download | systemd-f675a1f00595477968908fd1dd58a868422d83a3.tar.gz |
bash-completion: busctl: support --json and -j option
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/busctl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell-completion/bash/busctl b/shell-completion/bash/busctl index c5eab88caa..476101c24c 100644 --- a/shell-completion/bash/busctl +++ b/shell-completion/bash/busctl @@ -85,8 +85,8 @@ _busctl() { --show-machine --unique --acquired --activatable --list -q --quiet --verbose --expect-reply=no --auto-start=no --allow-interactive-authorization=no --augment-creds=no - --watch-bind=yes' - [ARG]='--address -H --host -M --machine --match --timeout --size' + --watch-bind=yes -j' + [ARG]='--address -H --host -M --machine --match --timeout --size --json' ) if __contains_word "--user" ${COMP_WORDS[*]}; then @@ -102,6 +102,10 @@ _busctl() { ;; --machine|-M) comps=$( __get_machines ) + ;; + --json) + comps=$( busctl --json=help 2>/dev/null ) + ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0 |