瀏覽代碼

Add process name completion for signal

Mike Naberezny 10 年之前
父節點
當前提交
218911bea0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      supervisor/supervisorctl.py

+ 2 - 2
supervisor/supervisorctl.py

@@ -261,8 +261,8 @@ class Controller(cmd.Cmd):
             elif action in ('add', 'remove', 'update'):
                 matches = self._complete_groups(text)
             # actions that accept a process name
-            elif action in ('clear', 'fg', 'pid', 'restart', 'start',
-                            'stop', 'status', 'tail'):
+            elif action in ('clear', 'fg', 'pid', 'restart', 'signal',
+                            'start', 'status', 'stop', 'tail'):
                 matches = self._complete_processes(text)
         if len(matches) > state:
             return matches[state]