39a4f9281b5d41736eb37ab535cb81a909e9f4b1

Author
Marco Zühlke <mzuehlke@gmail.com>
Committer
Marco Zühlke <mzuehlke@gmail.com>
Date

Message

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

Diff

 1diff --git a/plugins/supervisor/README.md b/plugins/supervisor/README.md
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..25a04c9683fb3f807a383ee6a15ef7f068a24b4d
 4--- /dev/null
 5+++ b/plugins/supervisor/README.md
 6@@ -0,0 +1,13 @@
 7+# supervisor plugin
 8+
 9+This plugin adds tab-completion for supervisord/supervisorctl in [Supervisor](http://supervisord.org/).
10+
11+Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
12+
13+To use it, add `supervisor` to the plugins array in your zshrc file:
14+
15+```zsh
16+plugins=(... supervisor)
17+```
18+
19+These scripts are from [zshcompfunc4supervisor](https://bitbucket.org/hhatto/zshcompfunc4supervisor).
20diff --git a/plugins/supervisor/_supervisorctl b/plugins/supervisor/_supervisorctl
21index d159f20e07f9a384e47e4cc16b78cce80aeeeef6..9f576c0c074208507fadcdbd81c4a25c65b931b5 100644
22--- a/plugins/supervisor/_supervisorctl
23+++ b/plugins/supervisor/_supervisorctl
24@@ -112,6 +112,13 @@ _supervisorctl_start() {
25         '*::supvervisor process:_get_supervisor_procs'
26 }
27 
28+(( $+functions[_supervisorctl_restart] )) ||
29+_supervisorctl_restart() {
30+    # TODO: add 'all'
31+    _arguments -s \
32+        '*::supvervisor process:_get_supervisor_procs'
33+}
34+
35 (( $+functions[_supervisorctl_status] )) ||
36 _supervisorctl_status() {
37     _arguments \