mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
9e465d2f60
Add `fly` CLI for working with Concourse CI, and include Bash completions.
11 lines
343 B
Bash
11 lines
343 B
Bash
# credits:
|
|
# https://godoc.org/github.com/jessevdk/go-flags#hdr-Completion
|
|
# https://github.com/concourse/concourse/issues/1309#issuecomment-452893900
|
|
_fly_compl() {
|
|
args=("${COMP_WORDS[@]:1:$COMP_CWORD}")
|
|
local IFS=$'\n'
|
|
COMPREPLY=($(GO_FLAGS_COMPLETION=1 ${COMP_WORDS[0]} "${args[@]}"))
|
|
return 0
|
|
}
|
|
complete -F _fly_compl fly
|