Sha256: 7747a0bacb6f8ce7e8c0adeab069d7ee90cb1c4937f773a352720f0bcce17004

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

#compdef shaft

_shaft() {
  local curcontext="$curcontext" state line
  typeset -A opt_args

  _arguments \
    '1: :->command'\
    '*: :->tunnel'


  case $state in
  command)
    _arguments "1:Commands:(active start stop restart help all completions)"
    ;;
  *)
    case $words[2] in
    start)
      compadd "$@" `shaft all --short`
    ;;
    stop|restart)
      compadd "$@" `shaft active --short`
    ;;
    esac
    ;;
  esac
}

_shaft "$@"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shaft-0.8.8 completions/_shaft
shaft-0.8.5 completions/_shaft
shaft-0.8 completions/_shaft