File: bash-completion

package info (click to toggle)
golang-go-flags 0.0~git20141007-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 344 kB
  • ctags: 394
  • sloc: sh: 13; makefile: 7
file content (9 lines) | stat: -rw-r--r-- 185 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
_examples() {
	args=("${COMP_WORDS[@]:1:$COMP_CWORD}")

	local IFS=$'\n'
	COMPREPLY=($(GO_FLAGS_COMPLETION=1 ${COMP_WORDS[0]} "${args[@]}"))
	return 1
}

complete -F _examples examples