summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Zühlke <mzuehlke@gmail.com>2019-10-18 23:37:51 +0200
committerMarco Zühlke <mzuehlke@gmail.com>2019-10-18 23:37:51 +0200
commit39a4f9281b5d41736eb37ab535cb81a909e9f4b1 (patch)
treef46bc9e843870d4cf36b3d82c05b15cc39c794cb
parent74165aba4ad500e6467973c5037e1379c55e9560 (diff)
downloadzsh-39a4f9281b5d41736eb37ab535cb81a909e9f4b1.tar.gz
zsh-39a4f9281b5d41736eb37ab535cb81a909e9f4b1.tar.bz2
zsh-39a4f9281b5d41736eb37ab535cb81a909e9f4b1.zip
Add Readme.md for supervisor.
Sync completion with original source.
-rw-r--r--plugins/supervisor/README.md13
-rw-r--r--plugins/supervisor/_supervisorctl7
2 files changed, 20 insertions, 0 deletions
diff --git a/plugins/supervisor/README.md b/plugins/supervisor/README.md
new file mode 100644
index 000000000..25a04c968
--- /dev/null
+++ b/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).
diff --git a/plugins/supervisor/_supervisorctl b/plugins/supervisor/_supervisorctl
index d159f20e0..9f576c0c0 100644
--- a/plugins/supervisor/_supervisorctl
+++ b/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 \