Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds shell completions and custom user-agent #60

Merged
merged 4 commits into from
Jul 16, 2020

Conversation

displague
Copy link
Member

@displague displague commented Jul 1, 2020

  • Adds shell completions source <(packet completion bash) / eval "$(packet completion bash)"
  • Adds plural and singular command aliases for each command (this is inconsistent between resource types, adding the alternates resolves this)
  • Moves doc generation to a command packet docs ./docs (instead of requiring an environment variable to be set)
  • Includes packet-cli version in the User-Agent of the API requests

Closes #55
Closes #56
Closes #63


$ source <(packet completion bash)
$ # in Bash 3.2.x, you may need to use:  eval "$(packet completion bash)"
$ packet <tab>
2fa                   ip                    user
capacity              operating-systems     virtual-network
device                organization          volume
event                 plan                  vpn
facilities            project

$ packet device <tab>
create  delete  get     reboot  start   stop    update

$ packet device get --<tab>
--config       --config=      --id           --id=          --json
--project-id   --project-id=  --yaml

displague added 3 commits July 2, 2020 12:13
Shell completion is can now be enabled:
`source <(packet completion bash)`

This PR also updates links in README.md and options in packet.md.

Closes equinix#56

Signed-off-by: Marques Johansson <[email protected]>
Rather than requiring an environment variable to be set to generate
docs, the docs can be generated using `packet docs ./docs`

Signed-off-by: Marques Johansson <[email protected]>
@displague displague added the enhancement New feature or request label Jul 2, 2020
@displague displague requested a review from jasmingacic July 10, 2020 12:38
@jasmingacic
Copy link
Contributor

@displague I will merge this

@jasmingacic jasmingacic merged commit 8a57c21 into equinix:master Jul 16, 2020
@displague displague deleted the completions branch August 6, 2020 02:53
@gianarb gianarb mentioned this pull request Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants