浏览代码

Add Readme.md for supervisor.
Sync completion with original source.

Marco Zühlke 4 年之前
父节点
当前提交
39a4f9281b
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. 13 0
      plugins/supervisor/README.md
  2. 7 0
      plugins/supervisor/_supervisorctl

+ 13 - 0
plugins/supervisor/README.md

@@ -0,0 +1,13 @@
+# supervisor plugin
+
+This plugin adds tab-completion for supervisord/supervisorctl in [Supervisor](http://supervisord.org/).
+
+Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
+
+To use it, add `supervisor` to the plugins array in your zshrc file:
+
+```zsh
+plugins=(... supervisor)
+```
+
+These scripts are from [zshcompfunc4supervisor](https://bitbucket.org/hhatto/zshcompfunc4supervisor).

+ 7 - 0
plugins/supervisor/_supervisorctl

@@ -112,6 +112,13 @@ _supervisorctl_start() {
         '*::supvervisor process:_get_supervisor_procs'
 }
 
+(( $+functions[_supervisorctl_restart] )) ||
+_supervisorctl_restart() {
+    # TODO: add 'all'
+    _arguments -s \
+        '*::supvervisor process:_get_supervisor_procs'
+}
+
 (( $+functions[_supervisorctl_status] )) ||
 _supervisorctl_status() {
     _arguments \