Skip to content

Instantly share code, notes, and snippets.

@viktorbenei
Created November 24, 2017 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viktorbenei/50eaec1bb882b1e9280d3481ab58e437 to your computer and use it in GitHub Desktop.
Save viktorbenei/50eaec1bb882b1e9280d3481ab58e437 to your computer and use it in GitHub Desktop.
Bitrise CLI base fish shell completion for "run" and "version" commands
# ~/.config/fish/completions/bitrise.fish
# Run
complete -f -c bitrise -n '__fish_use_subcommand' -a run -d 'run specified workflow'
complete -f -c bitrise -n '__fish_seen_subcommand_from run' -a (bitrise workflows --id-only)
# Version
complete -f -c bitrise -n '__fish_use_subcommand' -a version -d 'cli version'
complete -f -c bitrise -n '__fish_seen_subcommand_from version' -s 'f' -l 'full' -d 'print full version'
complete -f -c bitrise -n '__fish_seen_subcommand_from version' -l 'format' -a 'raw json yml' -d 'format of print'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment