File: dokujclient_completion

package info (click to toggle)
dokujclient 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 916 kB
  • ctags: 1,055
  • sloc: java: 5,064; xml: 401; sh: 111; php: 20; makefile: 11
file content (16 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!bash

#Completion support for dokujclient

_dokujclient ()
{
  local cur

  cur=${COMP_WORDS[COMP_CWORD]}

  COMPREPLY=($(compgen -W "$(dokujclient --help | grep -v "\[" | grep -v "To get help" | grep -v "Available commands" | tr "\n" " " )" -- $cur))
}


complete -o default -o nospace -F _dokujclient dokujclient