66290a39c82647b3582cbf945ac4c3a08e3c854c

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

supervisor: add README and update completion (#8285)

Diff

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