Added a few flags:

* --state=
* --irreversible
* --show-type
* -i, --ignore-inhibitors
* --plain

Also arranged the flags as they are in the manual page. This way, as new
options are added they can more easily be added to the zsh completion as
well.
---

I can always put the order back, but this makes sense.

 shell-completion/systemd-zsh-completion.zsh | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/shell-completion/systemd-zsh-completion.zsh 
b/shell-completion/systemd-zsh-completion.zsh
index c85e00e..e26bba2 100644
--- a/shell-completion/systemd-zsh-completion.zsh
+++ b/shell-completion/systemd-zsh-completion.zsh
@@ -10,6 +10,7 @@ _ctls()
                 {-h,--help}'[Show help]' \
                 '--version[Show package version]' \
                 {-t,--type=}'[List only units of a particular type]:unit 
type:(automount device mount path service snapshot socket swap target timer)' \
+                '--state=[Display units in the specifyied state]:unit 
state:(loaded failed active inactive not-found listening running waiting 
plugged mounted exited dead masked)' \
                 \*{-p,--property=}'[Show only properties by specific 
name]:unit property' \
                 {-a,--all}'[Show all units/properties, including dead/empty 
ones]' \
                 '--reverse[Show reverse dependencies]' \
@@ -18,26 +19,30 @@ _ctls()
                 '--failed[Show only failed units]' \
                 {-l,--full}"[Don't ellipsize unit names on output]" \
                 '--fail[When queueing a new job, fail if conflicting jobs are 
pending]' \
+                '--show-types[When showing sockets, show socket type]' \
+                '--irreversible[Mark transactions as irreversible]' \
                 '--ignore-dependencies[When queueing a new job, ignore all its 
dependencies]' \
-                '--kill-who=[Who to send signal to]:killwho:(main control 
all)' \
-                {-s,--signal=}'[Which signal to send]:signal:_signals' \
-                {-H,--host=}'[Show information for remote 
host]:userathost:_hosts_or_user_at_host' \
-                {-P,--privileged}'[Acquire privileges before execution]' \
+                {-i,--ignore-inhibitors}'[When executing a job, ignore jobs 
dependencies]' \
                 {-q,--quiet}'[Suppress output]' \
                 '--no-block[Do not wait until operation finished]' \
-                "--no-wall[Don't send wall message before 
halt/power-off/reboot]" \
-                "--no-reload[When enabling/disabling unit files, don't reload 
daemon configuration]" \
                 '--no-legend[Do not print a legend, i.e. the column headers 
and the footer with hints]' \
                 '--no-pager[Do not pipe output into a pager]' \
-                '--no-ask-password[Do not ask for system passwords]' \
                 '--system[Connect to system manager]' \
                 '--user[Connect to user service manager]' \
+                "--no-wall[Don't send wall message before 
halt/power-off/reboot]" \
                 '--global[Enable/disable unit files globally]' \
+                "--no-reload[When enabling/disabling unit files, don't reload 
daemon configuration]" \
+                '--no-ask-password[Do not ask for system passwords]' \
+                '--kill-who=[Who to send signal to]:killwho:(main control 
all)' \
+                {-s,--signal=}'[Which signal to send]:signal:_signals' \
                 {-f,--force}'[When enabling unit files, override existing 
symlinks. When shutting down, execute action immediately]' \
                 '--root=[Enable unit files in the specified root 
directory]:directory:_directories' \
                 '--runtime[Enable unit files only temporarily until next 
reboot]' \
+                {-H,--host=}'[Show information for remote 
host]:userathost:_hosts_or_user_at_host' \
+                {-P,--privileged}'[Acquire privileges before execution]' \
                 {-n,--lines=}'[Journal entries to show]:number of entries' \
                 {-o,--output=}'[Change journal output 
mode]:modes:_outputmodes' \
+                '--plain[When used with list-dependencies, print output as a 
list]' \
                 '*::systemctl command:_systemctl_command'
         ;;
         loginctl)
-- 
1.8.3.2.1052.g3a6d627

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to