summaryrefslogtreecommitdiff
path: root/plugins/supervisor/_supervisord
diff options
context:
space:
mode:
authorHenry Yan <yanhonglei@gmail.com>2012-10-14 22:06:48 +0800
committerHenry Yan <yanhonglei@gmail.com>2012-10-14 22:06:48 +0800
commit3ad138a08aa3de1246cffde0b7187ffcd017298c (patch)
tree4060de701525c143c8f73244b5d5a5ddd69273ba /plugins/supervisor/_supervisord
parent3fe1e5c78760b81335eef501ef7f89875ae7753a (diff)
parentc2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 (diff)
downloadzsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.tar.gz
zsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.tar.bz2
zsh-3ad138a08aa3de1246cffde0b7187ffcd017298c.zip
Merge remote-tracking branch 'upstream/master'
* upstream/master: (35 commits) make README reflect latest changes URL Tools Plugin added a comment to the composer installation alias added Composer completition and aliases added two aliases to Symfony2 Plugin fix test aliases Missing comment line look for test/unit instead of test/units. #typo Correct error message. Clean up doc Jira ticket shortcut to browse existing issues or create a new issue. Add zeus plugin Make rvm prompt function a bit cleaner Fixing the rvm_prompt_info command, now it will not show empty parens if no rvm is currently being used Add link to gist Updated documentation for agnoster theme Use HISTFILE evironment variable directly rather than copying it added autojump plugin support for mac os x + port Colemak plugin Per directory history plugin ...
Diffstat (limited to 'plugins/supervisor/_supervisord')
-rw-r--r--plugins/supervisor/_supervisord32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/supervisor/_supervisord b/plugins/supervisor/_supervisord
new file mode 100644
index 000000000..34d27805d
--- /dev/null
+++ b/plugins/supervisor/_supervisord
@@ -0,0 +1,32 @@
+#compdef supervisord
+
+typeset -A opt_args
+local context state line
+
+_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