]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: add --wait to systemd-run completions (#4140)
authorDavide Cavalca <davide125@tiscali.it>
Wed, 14 Sep 2016 20:38:53 +0000 (13:38 -0700)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 14 Sep 2016 20:38:53 +0000 (22:38 +0200)
shell-completion/bash/systemd-run
shell-completion/zsh/_systemd-run

index 022331e6a9b40f1003a8ccbe7590c2a1820654bf..4116ba7eca0e4ee7f2653b5bf7dde479ad72e89c 100644 (file)
@@ -36,7 +36,8 @@ _systemd_run() {
                 -r --remain-after-exit --send-sighup -H --host -M --machine --service-type
                 --on-active --on-boot --on-startup --on-unit-active --on-unit-inactive
                 --on-calendar --timer-property -t --pty -q --quiet --no-block
-                --uid --gid --nice --setenv -p --property --no-ask-password'
+                --uid --gid --nice --setenv -p --property --no-ask-password
+                --wait'
 
     local mode=--system
     local i
index 6362b97766467225009eb6375592f8952f1d70fd..da9f73a6d056c1de2727fd44df906a3af2785946 100644 (file)
@@ -57,4 +57,5 @@ _arguments \
         '--on-unit-inactive=[Run after SEC seconds from the last deactivation]:SEC' \
         '--on-calendar=[Realtime timer]:SPEC' \
         '--timer-property=[Set timer unit property]:NAME=VALUE' \
+        '--wait=[Wait until service stopped again]' \
         '*::command:_command'