Skip to content

bash and zsh tab completion for VMware Cloud PKS (formerly VMware Kubernetes Engine) CLI

License

Notifications You must be signed in to change notification settings

ali5ter/vke-completion

Repository files navigation

vke-completion

vke_bash_completion.sh provides bash tab completion for the VMware Cloud PKS (formerly VKE) CLI.

CircleCI

Usage

Source this from your .bash_profile or, to use in your current shell, run source vke_bash_completion.sh

If you're using zsh, the following should allow this autocompletion to work:

$ autoload bashcompinit
$ bashcompinit
$ source vke_bash_completion.sh

Generation

The create_completion script uses cli_taxo to generate this tab completion script using the Cloud PKS CLI help output.

CLI Taxonomy Diagram

The create_taxo_graph script uses cli_taxo to generate a radial diagram illustrating the taxonomy of the VMware Cloud PKS CLI as an SVG embedded in a webpage under taxonomy.

You can view this by running locally as a container like this:

  1. Build the docker image:
    docker build -t ali5ter/vke-cli-taxonomy:1.0 .
  2. Run the container:
    docker run -d -p8080:80 ali5ter/vke-cli-taxonomy:1.0
  3. Open http://localhost:8080/ to view the diagram.
  4. Stop and remove the container:
    docker rm -f $(docker ps | grep vke-cli-taxonomy | awk '{print $1}')

Other Cloud PKS utilities

You may have use for some other Cloud PKS projects: