File: bash_completion

package info (click to toggle)
ddtc 0.17.5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 268 kB
  • sloc: perl: 2,260; makefile: 87
file content (17 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This is a bash completion rule

_ddtc()
{
	COMPREPLY=()
	cur=${COMP_WORDS[COMP_CWORD]}	# current word
	
	if [[ "$cur" == -* ]];
	then
		COMPREPLY=( $( compgen -W '-q -v -s -n -l -V -h --quiet --verbose --mail-self --nomail-self --lang --version --help' -- $cur ) )
	else
		COMPREPLY=( $( compgen -W 'parse mail fix clean stats section sget get review getbug btsclose notification status listtranslatedpackages noneveraguide neveraguide noguide guide' -- $cur ) )
	fi

	return 0
}
complete -F _ddtc ddtc