1. Hideo Hattori
  2. zshcompfunc4supervisor

Commits

Hideo Hattori  committed f8fad8b

fix some bugs

  • Participants
  • Parent commits 3ef439d
  • Branches default

Comments (0)

Files changed (1)

File _supervisord

View file
 typeset -A opt_args
 local context state line
 
-    _arguments -s -S \
-        "-c[configuration file]::FILENAME:_files" \
-        "--configuration[configuration file]:FILENAME:_files" \
-        "-n[run in the foreground (same as 'nodaemon true' in config file)]" \
-        "--nodaemon[run in the foreground (same as 'nodaemon true' in config file)]" \
-        "-h[print this usage message and exit]:" \
-        "--help[print this usage message and exit]:" \
-        "-u[run supervisord as this user]:USER:_users" \
-        "--user[run supervisord as this user]::USER:_users" \
-        "-m[use this umask for daemon subprocess (default is 022)]" \
-        "--umask[use this umask for daemon subprocess (default is 022)]" \
-        "-d[directory to chdir to when daemonized]" \
-        "--directory[directory to chdir to when daemonized]" \
-        "-l[use FILENAME as logfile path]::FILENAME:_files" \
-        "--logfile[use FILENAME as logfile path]::FILENAME:_files" \
-        "-y[use BYTES to limit the max size of logfile]" \
-        "--logfile_maxbytes[use BYTES to limit the max size of logfile]" \
-        "-z[number of backups to keep when max bytes reached]" \
-        "--logfile_backups[number of backups to keep when max bytes reached]" \
-        "-e[use LEVEL as log level (debug,info,warn,error,critical)]" \
-        "--loglevel[use LEVEL as log level (debug,info,warn,error,critical)]" \
-        "-j[write a pid file for the daemon process to FILENAME]" \
-        "--pidfile[write a pid file for the daemon process to FILENAME]" \
-        "-i[identifier used for this instance of supervisord]" \
-        "--identifier[identifier used for this instance of supervisord]" \
-        "-q[the log directory for child process logs]" \
-        "--childlogdir[the log directory for child process logs]" \
-        "-k[prevent the process from performing cleanup (removal of old automatic child log files) at startup.]" \
-        "--nocleanup[prevent the process from performing cleanup (removal of old automatic child log files) at startup.]" \
-        "-a[the minimum number of file descriptors for start success]" \
-        "--minfds[the minimum number of file descriptors for start success]" \
-        "-t[strip ansi escape codes from process output]" \
-        "--strip_ansi[strip ansi escape codes from process output]" \
-        "--minprocs[the minimum number of processes available for start success]" \
-        "--profile_options[run supervisord under profiler and output results based on OPTIONS, which is a comma-sep'd list of 'cumulative', 'calls', and/or 'callers', e.g. 'cumulative,callers')]" \
-        "*::USERNAME:_users"
+_arguments \
+    {--configuration,-c}"[configuration file]:FILENAME:_files" \
+    {--nodaemon,-n}"[run in the foreground (same as 'nodaemon true' in config file)]" \
+    {--help,-h}"[print this usage message and exit]:" \
+    {--user,-u}"[run supervisord as this user]:USER:_users" \
+    {--umask,-m}"[use this umask for daemon subprocess (default is 022)]" \
+    {--directory,-d}"[directory to chdir to when daemonized]" \
+    {--logfile,-l}"[use FILENAME as logfile path]:FILENAME:_files" \
+    {--logfile_maxbytes,-y}"[use BYTES to limit the max size of logfile]" \
+    {--logfile_backups,-z}"[number of backups to keep when max bytes reached]" \
+    {--loglevel,-e}"[use LEVEL as log level (debug,info,warn,error,critical)]:level:->levels" \
+    {--pidfile,-j}"[write a pid file for the daemon process to FILENAME]:FILENAME:_files" \
+    {--identifier,-i}"[identifier used for this instance of supervisord]" \
+    {--childlogdir,-q}"[the log directory for child process logs]:child log directory:_files -/" \
+    {--nocleanup,-k}"[prevent the process from performing cleanup (removal of old automatic child log files) at startup.]" \
+    {--minfds,-a}"[the minimum number of file descriptors for start success]" \
+    {--strip_ansi,-t}"[strip ansi escape codes from process output]" \
+    "--minprocs[the minimum number of processes available for start success]" \
+    "--profile_options[run supervisord under profiler and output results based on OPTIONS, which is a comma-sep'd list of 'cumulative', 'calls', and/or 'callers', e.g. 'cumulative,callers')]" \
+    "*::args:_gnu_generic"
+
+case $state in
+levels)
+    levels=("debug" "info" "warn" "error" "critical")
+    _describe -t levels 'supervisord levels' levels && return 0
+    ;;
+esac