summary refs log tree commit diff
path: root/Completion/Cygwin/Command/_cygrunsrv
diff options
context:
space:
mode:
authorFelix Rosencrantz <f_rosencrantz@users.sourceforge.net>2003-04-07 11:23:14 +0000
committerFelix Rosencrantz <f_rosencrantz@users.sourceforge.net>2003-04-07 11:23:14 +0000
commitf4b280d7779050d9b844c5add3f3e179e46333d3 (patch)
treea82ee65e770dbc8d13331927c4b93e5fea8c6d5e /Completion/Cygwin/Command/_cygrunsrv
parent06b04ca1b2d7dcbc77787a248241c6968808d40c (diff)
downloadzsh-f4b280d7779050d9b844c5add3f3e179e46333d3.tar.gz
zsh-f4b280d7779050d9b844c5add3f3e179e46333d3.tar.xz
zsh-f4b280d7779050d9b844c5add3f3e179e46333d3.zip
Added completion functions for cygwin
Diffstat (limited to 'Completion/Cygwin/Command/_cygrunsrv')
-rw-r--r--Completion/Cygwin/Command/_cygrunsrv39
1 files changed, 39 insertions, 0 deletions
diff --git a/Completion/Cygwin/Command/_cygrunsrv b/Completion/Cygwin/Command/_cygrunsrv
new file mode 100644
index 000000000..08c23058e
--- /dev/null
+++ b/Completion/Cygwin/Command/_cygrunsrv
@@ -0,0 +1,39 @@
+#compdef cygrunsrv cygrunsrv.exe
+#Generated by Felix Rosencrantz
+
+local context state line
+typeset -A opt_args
+_arguments  \
+  '(--install -I)'{-I,--install}':Installes a new service named <svc_name>.:->svc_name' \
+  '(--remove -R)'{-R,--remove}':Removes a service named <svc_name>.:->svc_name' \
+  '(--start -S)'{-S,--start}':Starts a service named <svc_name>.:->svc_name' \
+  '(--stop -E)'{-E,--stop}':Stops a service named <svc_name>.:->svc_name' \
+  '(--path -p)'{-p,--path}':Application path which is run as a service.:->app_path' \
+  '(--args -a)'{-a,--args}':Optional string with command line options which is given to the service application on startup.:->args' \
+  '(--chdir -c)'{-c,--chdir}':Optional directory which will be used as working directory for the application.:_directories' \
+  '(--env -e)'{-e,--env}':Optional environment strings which are added to the environment when service is started. You can add up to 255 environment strings using:->VAR=VALUE' \
+  '(--disp -d)'{-d,--disp}':Optional string which contains the display name of the service. Defaults to service name.:->display_name' \
+  '(--desc -f)'{-f,--desc}':Optional string which contains the service description.:->description' \
+  "(--type -t)"{-t,--type}"[Optional start type of service. Defaults to 'auto'.]: :(auto manual)" \
+  '(--user -u)'{-u,--user}':Optional user name to start service as. Defaults to SYSTEM account.:_users' \
+  '(--passwd -w)'{-w,--passwd}':Optional password for user. Only needed if a user is given. If a user has an empty:->password' \
+  '(--termsig -s)'{-s,--termsig}':Optional signal to send to service application when service is stopped. <signal> can be a number or a signal name such as HUP, INT, QUIT, etc. Default is TERM.:_signals' \
+  '(--dep -y)'{-y,--dep}':Optional name of service that must be started:->svc_name2' \
+  '(--stdin -0)'{-0,--stdin}':Optional input file used for stdin redirection. Default is /dev/null.:_files' \
+  '(--stdout -1)'{-1,--stdout}':Optional output file used for stdout redirection. Default is /var/log/<svc_name>.log.:_files' \
+  '(--stderr -2)'{-2,--stderr}':Optional output file used for stderr redirection. Default is /var/log/<svc_name>.log.:_files' \
+  '(--shutdown -o)'{-o,--shutdown}'[Stop service application during system shutdown.]' \
+  '(--help -h)'{-h,--help}'[print this help, then exit.]' \
+  '(--version -v)'{-v,--version}'[print cygrunsrv program version number, then exit.]' \
+  '*: :_files'  && return 0
+            
+case $state in
+  "VAR=VALUE");;
+  "app_path");;
+  "args");;
+  "description");;
+  "display_name");;
+  "password");;
+  "svc_name");;
+  "svc_name2");;
+esac