Commits

Hideo Hattori committed 35d0ddb

refactoring

Comments (0)

Files changed (1)

         )
 
     if (( CURRENT == 1 )); then
-        _describe -t commands 'supervisorctl subcommand' _supervisorctl_cmds || compadd "$@" - ${(s.:.)${(j.:.)_supervisorctl_syns}}
+        _describe -t commands 'supervisorctl subcommand' _supervisorctl_cmds \
+            || compadd "$@" - ${(s.:.)${(j.:.)_supervisorctl_syns}}
     else
         local curcontext="$curcontext"
 
         cmd="${${_supervisorctl_cmds[(r)$words[1]:*]%%:*}:-${(k)_supervisorctl_syns[(r)(*:|)$words[1](:*|)]}}"
         if (( $#cmd )); then
-          curcontext="${curcontext%:*:*}:supervisorctl-${cmd}:"
-          _call_function ret _supervisorctl_$cmd || _message 'no more arguments'
+            curcontext="${curcontext%:*:*}:supervisorctl-${cmd}:"
+            _call_function ret _supervisorctl_$cmd || _message 'no more arguments'
         else
-          _message "unknown supervisorctl command: $words[1]"
+            _message "unknown supervisorctl command: $words[1]"
         fi
         return ret
     fi