diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/continuous-integration/fly/fly.bash')
-rw-r--r-- | nixpkgs/pkgs/development/tools/continuous-integration/fly/fly.bash | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/continuous-integration/fly/fly.bash b/nixpkgs/pkgs/development/tools/continuous-integration/fly/fly.bash new file mode 100644 index 000000000000..a9acc5f70a40 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/continuous-integration/fly/fly.bash @@ -0,0 +1,10 @@ +# 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 |