1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 10:22:00 +00:00

supervisor: add README and update completion (#8285)

This commit is contained in:
Marc Cornellà 2019-10-19 17:35:13 +02:00 committed by GitHub
commit 66290a39c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -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).

View file

@ -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 \