]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion/zsh: update systemd-analyze completions
authorRonan Pigott <rpigott@berkeley.edu>
Mon, 27 Apr 2020 06:16:55 +0000 (23:16 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Apr 2020 06:40:15 +0000 (08:40 +0200)
shell-completion/zsh/_systemd-analyze

index 89ba46c959d3bef8b60ac54cb2ccc1e980238173..75e72439fd85ec8eafa1951ade51c4e38635855e 100644 (file)
         _describe -t state 'state' _states || compadd "$@"
     }
 
+(( $+functions[_systemd-analyze_cat-config] )) ||
+       _systemd-analyze_cat-config() {
+        _files -W '(/run/systemd/ /etc/systemd/ /usr/lib/systemd/)' -P 'systemd/'
+    }
+
+(( $+functions[_systemd-analyze_security] )) ||
+    _systemd-analyze_security() {
+        _sd_unit_files
+    }
+
 (( $+functions[_systemd-analyze_commands] )) ||
     _systemd-analyze_commands(){
         local -a _systemd_analyze_cmds
             'plot:Output SVG graphic showing service initialization'
             'dot:Dump dependency graph (in dot(1) format)'
             'dump:Dump server status'
+            'cat-config:Cat systemd config files'
+            'unit-files:List files and symlinks for units'
             'unit-paths:List unit load paths'
-            'log-level:Get/set systemd log threshold'
-            'log-target:Get/set systemd log target'
-            'service-watchdogs:Get/set service watchdog status'
+            'exit-status:List known exit statuses'
             'syscall-filter:List syscalls in seccomp filter'
+            'condition:Evaluate Condition*= and Assert*= assignments'
             'verify:Check unit files for correctness'
             'calendar:Validate repetitive calendar time events'
+            'timestamp:Parse a systemd syntax timestamp'
+            'timespan:Parse a systemd syntax timespan'
+            'security:Analyze security settings of a service'
+            # 'log-level:Get/set systemd log threshold'
+            # 'log-target:Get/set systemd log target'
+            # 'service-watchdogs:Get/set service watchdog status'
         )
 
         if (( CURRENT == 1 )); then