diff options
author | Luca Boccassi <bluca@debian.org> | 2024-08-07 22:59:26 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2024-08-09 13:12:28 +0200 |
commit | 702d74b62a65e46f083172d4454ad9ebf10b5e0d (patch) | |
tree | ee880611dd4642215b16959bb07c32796917d250 /shell-completion | |
parent | busctl: add support for --timeout to monitor verb (diff) | |
download | systemd-702d74b62a65e46f083172d4454ad9ebf10b5e0d.tar.xz systemd-702d74b62a65e46f083172d4454ad9ebf10b5e0d.zip |
busctl: add --num-matches= for monitor verb
Useful in scripts when one wants to wait for a specific
signal before continuing
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/busctl | 2 | ||||
-rw-r--r-- | shell-completion/zsh/_busctl | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/shell-completion/bash/busctl b/shell-completion/bash/busctl index bb80c17683..ea88cca8c6 100644 --- a/shell-completion/bash/busctl +++ b/shell-completion/bash/busctl @@ -89,7 +89,7 @@ _busctl() { --allow-interactive-authorization=no --augment-creds=no --watch-bind=yes -j -l --full --xml-interface' [ARG]='--address -H --host -M --machine --match --timeout --size --json - --destination' + --destination --num-matches' ) if __contains_word "--user" ${COMP_WORDS[*]}; then diff --git a/shell-completion/zsh/_busctl b/shell-completion/zsh/_busctl index c8c4f96ed1..0018cf6622 100644 --- a/shell-completion/zsh/_busctl +++ b/shell-completion/zsh/_busctl @@ -284,4 +284,5 @@ _arguments \ '--allow-interactive-authorization=[Allow interactive authorization for operation]:boolean:(1 0)' \ '--timeout=[Maximum time to wait for method call completion and monitoring]:timeout (seconds)' \ '--augment-creds=[Extend credential data with data read from /proc/$PID]:boolean:(1 0)' \ + '--num-matches=[Exit after receiving a number of matches while monitoring]:integer' \ '*::busctl command:_busctl_commands' |