From f4b280d7779050d9b844c5add3f3e179e46333d3 Mon Sep 17 00:00:00 2001 From: Felix Rosencrantz Date: Mon, 7 Apr 2003 11:23:14 +0000 Subject: Added completion functions for cygwin --- Completion/Cygwin/Command/_cygrunsrv | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Completion/Cygwin/Command/_cygrunsrv (limited to 'Completion/Cygwin/Command/_cygrunsrv') 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' \ + '(--remove -R)'{-R,--remove}':Removes a service named .:->svc_name' \ + '(--start -S)'{-S,--start}':Starts a service named .:->svc_name' \ + '(--stop -E)'{-E,--stop}':Stops a service named .:->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. 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/.log.:_files' \ + '(--stderr -2)'{-2,--stderr}':Optional output file used for stderr redirection. Default is /var/log/.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 -- cgit 1.4.1