Skip to content

Instantly share code, notes, and snippets.

@smith
Created November 28, 2016 20:31
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 smith/fb70b947e509ee4803d38a2ccb46d4e2 to your computer and use it in GitHub Desktop.
Save smith/fb70b947e509ee4803d38a2ccb46d4e2 to your computer and use it in GitHub Desktop.
generated fish completions
function __fish_using_command
set cmd (commandline -opc)
if [ (count $cmd) -eq (count $argv) ]
for i in (seq (count $argv))
if [ $cmd[$i] != $argv[$i] ]
return 1
end
end
return 0
end
return 1
end
complete -c hab -n "__fish_using_command hab" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab" -f -a "cli"
complete -c hab -n "__fish_using_command hab" -f -a "config"
complete -c hab -n "__fish_using_command hab" -f -a "file"
complete -c hab -n "__fish_using_command hab" -f -a "origin"
complete -c hab -n "__fish_using_command hab" -f -a "pkg"
complete -c hab -n "__fish_using_command hab" -f -a "plan"
complete -c hab -n "__fish_using_command hab" -f -a "ring"
complete -c hab -n "__fish_using_command hab" -f -a "service"
complete -c hab -n "__fish_using_command hab" -f -a "studio"
complete -c hab -n "__fish_using_command hab" -f -a "sup"
complete -c hab -n "__fish_using_command hab" -f -a "user"
complete -c hab -n "__fish_using_command hab" -f -a "apply"
complete -c hab -n "__fish_using_command hab" -f -a "install"
complete -c hab -n "__fish_using_command hab" -f -a "setup"
complete -c hab -n "__fish_using_command hab" -f -a "start"
complete -c hab -n "__fish_using_command hab" -f -a "help"
complete -c hab -n "__fish_using_command hab cli" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab cli" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab cli" -f -a "setup"
complete -c hab -n "__fish_using_command hab cli" -f -a "completers"
complete -c hab -n "__fish_using_command hab cli" -f -a "help"
complete -c hab -n "__fish_using_command hab cli setup" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab cli setup" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab cli completers" -s s -l shell -d "The name of the shell you want to generate the command-completion. Supported Shells: bash, fish, zsh, powershell" -r -f -a "bash fish zsh powershell"
complete -c hab -n "__fish_using_command hab cli completers" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab cli completers" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab cli help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab cli help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab config" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab config" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab config" -f -a "apply"
complete -c hab -n "__fish_using_command hab config" -f -a "help"
complete -c hab -n "__fish_using_command hab config apply" -s p -l peer -d "A comma-delimited list of one or more Habitat Supervisor peers to infect (default: 127.0.0.1:9634)"
complete -c hab -n "__fish_using_command hab config apply" -s r -l ring -d "Ring key name, which will encrypt communication messages"
complete -c hab -n "__fish_using_command hab config apply" -l org -d "Name of service organization"
complete -c hab -n "__fish_using_command hab config apply" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab config apply" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab config help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab config help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab file" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab file" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab file" -f -a "upload"
complete -c hab -n "__fish_using_command hab file" -f -a "help"
complete -c hab -n "__fish_using_command hab file upload" -l org -d "Name of service organization"
complete -c hab -n "__fish_using_command hab file upload" -s p -l peer -d "A comma-delimited list of one or more Habitat Supervisor peers to infect (default: 127.0.0.1:9634)"
complete -c hab -n "__fish_using_command hab file upload" -s r -l ring -d "Ring key name, which will encrypt communication messages"
complete -c hab -n "__fish_using_command hab file upload" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab file upload" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab file help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab file help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin" -f -a "key"
complete -c hab -n "__fish_using_command hab origin" -f -a "help"
complete -c hab -n "__fish_using_command hab origin key" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin key" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin key" -f -a "download"
complete -c hab -n "__fish_using_command hab origin key" -f -a "export"
complete -c hab -n "__fish_using_command hab origin key" -f -a "generate"
complete -c hab -n "__fish_using_command hab origin key" -f -a "import"
complete -c hab -n "__fish_using_command hab origin key" -f -a "upload"
complete -c hab -n "__fish_using_command hab origin key" -f -a "help"
complete -c hab -n "__fish_using_command hab origin key download" -s u -l url -d "Use a specific Depot URL (ex: http://depot.example.com/v1/depot)"
complete -c hab -n "__fish_using_command hab origin key download" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin key download" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin key export" -s t -l type -d "Export either the `public' or `secret' key"
complete -c hab -n "__fish_using_command hab origin key export" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin key export" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin key generate" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin key generate" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin key import" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin key import" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin key upload" -l pubfile -d "Path to a local public origin key file on disk"
complete -c hab -n "__fish_using_command hab origin key upload" -l secfile -d "Path to a local secret origin key file on disk"
complete -c hab -n "__fish_using_command hab origin key upload" -s u -l url -d "Use a specific Depot URL (ex: http://depot.example.com/v1/depot)"
complete -c hab -n "__fish_using_command hab origin key upload" -s z -l auth -d "Authentication token for the Depot"
complete -c hab -n "__fish_using_command hab origin key upload" -s s -l secret -d "Upload secret key in addition to the public key"
complete -c hab -n "__fish_using_command hab origin key upload" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin key upload" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin key help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin key help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab origin help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab origin help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg" -f -a "binlink"
complete -c hab -n "__fish_using_command hab pkg" -f -a "build"
complete -c hab -n "__fish_using_command hab pkg" -f -a "exec"
complete -c hab -n "__fish_using_command hab pkg" -f -a "export"
complete -c hab -n "__fish_using_command hab pkg" -f -a "hash"
complete -c hab -n "__fish_using_command hab pkg" -f -a "install"
complete -c hab -n "__fish_using_command hab pkg" -f -a "path"
complete -c hab -n "__fish_using_command hab pkg" -f -a "provides"
complete -c hab -n "__fish_using_command hab pkg" -f -a "search"
complete -c hab -n "__fish_using_command hab pkg" -f -a "sign"
complete -c hab -n "__fish_using_command hab pkg" -f -a "upload"
complete -c hab -n "__fish_using_command hab pkg" -f -a "verify"
complete -c hab -n "__fish_using_command hab pkg" -f -a "header"
complete -c hab -n "__fish_using_command hab pkg" -f -a "help"
complete -c hab -n "__fish_using_command hab pkg binlink" -s d -l dest -d "Sets the destination directory (default: /bin)"
complete -c hab -n "__fish_using_command hab pkg binlink" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg binlink" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg build" -s k -l keys -d "Installs secret origin keys (ex: "unicorn", "acme,other,acme-ops")"
complete -c hab -n "__fish_using_command hab pkg build" -s r -l root -d "Sets the Studio root (default: /hab/studios/<DIR_NAME>)"
complete -c hab -n "__fish_using_command hab pkg build" -s s -l src -d "Sets the source path (default: $PWD)"
complete -c hab -n "__fish_using_command hab pkg build" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg build" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg exec" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg exec" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg export" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg export" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg hash" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg hash" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg install" -s u -l url -d "Use a specific Depot URL (ex: http://depot.example.com/v1/depot)"
complete -c hab -n "__fish_using_command hab pkg install" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg install" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg path" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg path" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg provides" -s r -d "Show fully qualified package names (ex: core/busybox-static/1.24.2/20160708162350)"
complete -c hab -n "__fish_using_command hab pkg provides" -s p -d "Show full path to file"
complete -c hab -n "__fish_using_command hab pkg provides" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg provides" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg search" -s u -l url -d "Use a specific Depot URL (ex: http://depot.example.com/v1/depot)"
complete -c hab -n "__fish_using_command hab pkg search" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg search" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg sign" -l origin -d "Origin key used to create signature"
complete -c hab -n "__fish_using_command hab pkg sign" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg sign" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg upload" -s u -l url -d "Use a specific Depot URL (ex: http://depot.example.com/v1/depot)"
complete -c hab -n "__fish_using_command hab pkg upload" -s z -l auth -d "Authentication token for the Depot"
complete -c hab -n "__fish_using_command hab pkg upload" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg upload" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg verify" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg verify" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg header" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg header" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab pkg help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab pkg help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab plan" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab plan" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab plan" -f -a "init"
complete -c hab -n "__fish_using_command hab plan" -f -a "help"
complete -c hab -n "__fish_using_command hab plan init" -s o -l origin -d "Origin for the new app"
complete -c hab -n "__fish_using_command hab plan init" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab plan init" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab plan help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab plan help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab ring" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab ring" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab ring" -f -a "key"
complete -c hab -n "__fish_using_command hab ring" -f -a "help"
complete -c hab -n "__fish_using_command hab ring key" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab ring key" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab ring key" -f -a "export"
complete -c hab -n "__fish_using_command hab ring key" -f -a "import"
complete -c hab -n "__fish_using_command hab ring key" -f -a "generate"
complete -c hab -n "__fish_using_command hab ring key" -f -a "help"
complete -c hab -n "__fish_using_command hab ring key export" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab ring key export" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab ring key import" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab ring key import" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab ring key generate" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab ring key generate" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab ring key help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab ring key help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab ring help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab ring help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab service" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab service" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab service" -f -a "key"
complete -c hab -n "__fish_using_command hab service" -f -a "help"
complete -c hab -n "__fish_using_command hab service key" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab service key" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab service key" -f -a "generate"
complete -c hab -n "__fish_using_command hab service key" -f -a "help"
complete -c hab -n "__fish_using_command hab service key generate" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab service key generate" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab service key help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab service key help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab service help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab service help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab studio" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab studio" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab sup" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab sup" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab user" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab user" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab user" -f -a "key"
complete -c hab -n "__fish_using_command hab user" -f -a "help"
complete -c hab -n "__fish_using_command hab user key" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab user key" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab user key" -f -a "generate"
complete -c hab -n "__fish_using_command hab user key" -f -a "help"
complete -c hab -n "__fish_using_command hab user key generate" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab user key generate" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab user key help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab user key help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab user help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab user help" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab apply" -s p -l peer -d "A comma-delimited list of one or more Habitat Supervisor peers to infect (default: 127.0.0.1:9634)"
complete -c hab -n "__fish_using_command hab apply" -s r -l ring -d "Ring key name, which will encrypt communication messages"
complete -c hab -n "__fish_using_command hab apply" -l org -d "Name of service organization"
complete -c hab -n "__fish_using_command hab apply" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab apply" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab install" -s u -l url -d "Use a specific Depot URL (ex: http://depot.example.com/v1/depot)"
complete -c hab -n "__fish_using_command hab install" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab install" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab setup" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab setup" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab start" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab start" -s V -l version -d "Prints version information"
complete -c hab -n "__fish_using_command hab help" -s h -l help -d "Prints help information"
complete -c hab -n "__fish_using_command hab help" -s V -l version -d "Prints version information"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment