Add k3d completions

This commit is contained in:
Daniel Kravetz Malabud 2020-07-16 15:03:14 +02:00 committed by ridiculousfish
parent 82de51b9d3
commit da16e8c6b3

View file

@ -0,0 +1,13 @@
# Disable file completion
complete -c k3d -f
# Only suggest the following commands if none have been used yet
complete -rc k3d -n __fish_use_subcommand -a create -d "Create a resource [cluster, node]"
complete -rc k3d -n __fish_use_subcommand -a delete -d "Delete a resource [cluster, node]"
complete -rc k3d -n __fish_use_subcommand -a get -d "Get a resource [cluster, node, kubeconfig]"
complete -rc k3d -n __fish_use_subcommand -a help -d "Help menu"
complete -rc k3d -n __fish_use_subcommand -a load -d "Load an in image into a cluster"
complete -rc k3d -n __fish_use_subcommand -a start -d "Start a resource [cluster, node]"
complete -rc k3d -n __fish_use_subcommand -a stop -d "Stop a resource [cluster, node]"
complete -rc k3d -n __fish_use_subcommand -a version -d "Print k3d version"
complete -rc k3d -n __fish_use_subcommand -a --help -d "Show usage help"