zsh-workers
 help / color / mirror / code / Atom feed
9a55be1e9f72441c9a535c2fa14601096202858e blob 2246 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 
#compdef sv

_arguments \
  '-v[verbose]' \
  '-w:wait time' \
  ':command:->command' \
  '*::options:->options'

case $state in
  (command)
    local -a sv_ary
    sv_ary=(
           'status':'Get status of service (and log service if available)'
               'up':'start if service is running. If service stops, restart'
             'down':'send SIGTERM and SIGCONT if service is running. After it stops, do not restart'
             'once':'start if service is not running. Do not restart if it stops'
            'pause':'send SIGSTOP if service is running'
             'cont':'send SIGCONT if service is running'
              'hup':'send SIGHUP if service is running'
            'alarm':'send SIGALRM if service is running'
        'interrupt':'send SIGINT if service is running'
             'quit':'send SIGQUIT if service is running'
                '1':'send SIGUSR1 if service is running'
                '2':'send SIGUSR2 if service is running'
             'term':'send SIGTERM if service is running'
             'kill':'send SIGKILL if service is running'
             'exit':'send SIGTERM and SIGCONT if service is running. Do not restart service.'
      )

      local -a sv_lsb_ary
      sv_lsb_ary=(
                  'start':'up with check/timeout'
                   'stop':'down with check/timeout'
                 'reload':'hup with check'
                'restart':'down and up with check'
               'shutdown':'exit with check/timeout'
             'force-stop':'stop with kill on timeout'
           'force-reload':'reload with kill on timeout'
          'force-restart':'restart with kill on timeout'
         'force-shutdown':'shutdown with kill on timeout'
            'try-restart':'restart if service is already running'
      )

      _describe -t commands "sv commands" sv_ary -V sv_commands
      _describe -t commands "sv LSM init compat" sv_lsb_ary -V sv_init_compat
      _describe -t commands "sv additional commands" '("check:check status of service")' -V sv_addl_comm
      return
  ;;

  (options)
    local -a sv_services
    sv_services=(
      $SVDIR/*(N)
      $SVDIR/*/log(N)
    )

    sv_services=( ${sv_services#$SVDIR/} )
    _describe -t services "sv services" sv_services
  ;;
esac
debug log:

solving 9a55be1 ...
found 9a55be1 in https://inbox.vuxu.org/zsh-workers/20141005200135.GD58824@wanderlust.lan.mitsi.com/

applying [1/1] https://inbox.vuxu.org/zsh-workers/20141005200135.GD58824@wanderlust.lan.mitsi.com/
diff --git a/Completion/Unix/Command/_sv b/Completion/Unix/Command/_sv
new file mode 100644
index 0000000..9a55be1

Checking patch Completion/Unix/Command/_sv...
Applied patch Completion/Unix/Command/_sv cleanly.

index at:
100644 9a55be1e9f72441c9a535c2fa14601096202858e	Completion/Unix/Command/_sv

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).