]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/supervisor/_supervisord
e0cb670e1f158cd6819757f3fc51a20871dde077
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / supervisor / _supervisord
1 #compdef supervisord
2
3 typeset -A opt_args
4 local context state line
5
6 _arguments \
7     {--configuration,-c}"[configuration file]:FILENAME:_files" \
8     {--nodaemon,-n}"[run in the foreground (same as 'nodaemon true' in config file)]" \
9     {--help,-h}"[print this usage message and exit]:" \
10     {--version,-v}"[print supervisord version number and exit]:" \
11     {--user,-u}"[run supervisord as this user]:USER:_users" \
12     {--umask,-m}"[use this umask for daemon subprocess (default is 022)]" \
13     {--directory,-d}"[directory to chdir to when daemonized]" \
14     {--logfile,-l}"[use FILENAME as logfile path]:FILENAME:_files" \
15     {--logfile_maxbytes,-y}"[use BYTES to limit the max size of logfile]" \
16     {--logfile_backups,-z}"[number of backups to keep when max bytes reached]" \
17     {--loglevel,-e}"[use LEVEL as log level (debug,info,warn,error,critical)]:level:->levels" \
18     {--pidfile,-j}"[write a pid file for the daemon process to FILENAME]:FILENAME:_files" \
19     {--identifier,-i}"[identifier used for this instance of supervisord]" \
20     {--childlogdir,-q}"[the log directory for child process logs]:child log directory:_files -/" \
21     {--nocleanup,-k}"[prevent the process from performing cleanup (removal of old automatic child log files) at startup.]" \
22     {--minfds,-a}"[the minimum number of file descriptors for start success]" \
23     {--strip_ansi,-t}"[strip ansi escape codes from process output]" \
24     "--minprocs[the minimum number of processes available for start success]" \
25     "--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')]" \
26     "*::args:_gnu_generic"
27
28 case $state in
29 levels)
30     levels=("debug" "info" "warn" "error" "critical")
31     _describe -t levels 'supervisord levels' levels && return 0
32     ;;
33 esac