From b7ff887d69859052e73a6a1cfdb94f1fd5ad4610 Mon Sep 17 00:00:00 2001 From: Javier Wilson Date: Mon, 6 Jun 2016 10:49:11 -0600 Subject: [PATCH] autocomplete for restart command --- plugins/supervisor/_supervisorctl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/supervisor/_supervisorctl b/plugins/supervisor/_supervisorctl index d159f20e..9f576c0c 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 \