Skip to content

Instantly share code, notes, and snippets.

@christophchamp
Created June 18, 2015 19:56
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 christophchamp/5e096d1d9950c8598f01 to your computer and use it in GitHub Desktop.
Save christophchamp/5e096d1d9950c8598f01 to your computer and use it in GitHub Desktop.
Bash completion for `trove` (OpenStack DBaaS API)
_trove()
{
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(compgen -W "--configuration --marker database-list metadata-show secgroup-delete-rule cluster-delete user-revoke-access root-show --users database-delete --limit datastore-show configuration-detach backup-list user-grant-access help configuration-list delete --region --replica_of metadata-update create show -h cluster-show user-create --include-clustered configuration-create restart configuration-default metadata-list --backup --detach-replica-source user-update-attributes --new_password metadata-edit configuration-parameter-show backup-show --new_host flavor-show datastore-list configuration-instances --databases list --description root-enable secgroup-list-rules configuration-patch metadata-create resize-flavor --help cluster-list --remove_configuration --collate user-list datastore-version-list --instance cluster-instances cluster-create database-create secgroup-add-rule --datastore configuration-update configuration-parameter-list secgroup-show backup-list-instance backup-delete limit-list flavor-list --host --character_set --name resize-instance resize-volume --availability_zone --datastore_version update user-show-access datastore-version-show configuration-delete --size detach-replica backup-create user-delete --nic configuration-show configuration-attach secgroup-list --parent backup-copy user-show --new_name metadata-delete" -- $cur) )
}
complete -F _trove trove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment