summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-10-19 17:35:13 +0200
committerGitHub <noreply@github.com>2019-10-19 17:35:13 +0200
commit66290a39c82647b3582cbf945ac4c3a08e3c854c (patch)
tree8b334a31e573eab90cee7ca7b6b864d6631be191
parentbd9cd052f156f606a8f9ccccfeacf3125d06fd91 (diff)
parent160a801bedc9663db5539d4f663d2c2dbdf6cdcc (diff)
downloadzsh-66290a39c82647b3582cbf945ac4c3a08e3c854c.tar.gz
zsh-66290a39c82647b3582cbf945ac4c3a08e3c854c.tar.bz2
zsh-66290a39c82647b3582cbf945ac4c3a08e3c854c.zip
supervisor: add README and update completion (#8285)
-rw-r--r--plugins/supervisor/README.md12
-rw-r--r--plugins/supervisor/_supervisorctl7
2 files changed, 19 insertions, 0 deletions
diff --git a/plugins/supervisor/README.md b/plugins/supervisor/README.md
new file mode 100644
index 000000000..1eacea6d3
--- /dev/null
+++ b/plugins/supervisor/README.md
@@ -0,0 +1,12 @@
+# 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 \