From ba72ef47dcb1166401ac5f644aa804bcc45d8320 Mon Sep 17 00:00:00 2001 From: Mariah <16638455+mamclaughlin@users.noreply.github.com> Date: Fri, 16 Jul 2021 14:17:51 -0400 Subject: [PATCH] Release for v2.7.0 (#171) --- CHANGELOG.md | 8 ++++++++ README.md | 41 +++++++++++++++++++++++++++++++++++++++++ cmd/version.go | 2 +- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6752b4fe..5ed72a58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Change Log +## [v2.7.0](https://github.com/vultr/vultr-cli/compare/v2.6.0..v2.7.0) (2021-07-16) +### Dependencies +* GoVultr 2.6.0 -> 2.7.1 (added image_id support for instance and bare metal updates) [PR 169](https://github.com/vultr/vultr-cli/pull/169) + +### Enhancements +* Instances: Add image_id support [PR 169](https://github.com/vultr/vultr-cli/pull/169) +* Bare-metal: Add image_id support [PR 169](https://github.com/vultr/vultr-cli/pull/169) +* Add documentation for autocompletions in README ## [v2.6.0](https://github.com/vultr/vultr-cli/compare/v2.5.3..v2.6.0) (2021-07-07) ### Dependencies diff --git a/README.md b/README.md index 92ae51f0..99cd31c7 100644 --- a/README.md +++ b/README.md @@ -133,5 +133,46 @@ Currently the only available field that you can use with a config file is `api-k `api-key: MYKEY` +### CLI Autocompletion +`vultr-cli completion` will return autocompletions, but this feature requires setup. + +Some guides: + +
++ ## Contributing Feel free to send pull requests our way! Please see the [contributing guidelines](CONTRIBUTING.md). diff --git a/cmd/version.go b/cmd/version.go index 8278c207..ec7097e5 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -31,5 +31,5 @@ var versionCmd = &cobra.Command{ } func version() string { - return "Vultr-cli v2.6.0" + return "Vultr-cli v2.7.0" }Bash:
+ $ source <(yourprogram completion bash) + + To load completions for each session, execute once: + Linux: + $ yourprogram completion bash > /etc/bash_completion.d/yourprogram + + macOS: + $ yourprogram completion bash > /usr/local/etc/bash_completion.d/yourprogram + +Zsh:
+ If shell completion is not already enabled in your environment, + you will need to enable it. You can execute the following once: + + $ echo "autoload -U compinit; compinit" >> ~/.zshrc + + To load completions for each session, execute once: + $ yourprogram completion zsh > "${fpath[1]}/_yourprogram" + + You will need to start a new shell for this setup to take effect. + +fish:
+ $ yourprogram completion fish | source + + To load completions for each session, execute once: + $ yourprogram completion fish > ~/.config/fish/completions/yourprogram.fish + +PowerShell:
+ PS> yourprogram completion powershell | Out-String | Invoke-Expression + + To load completions for every new session, run: + PS> yourprogram completion powershell > yourprogram.ps1 + and source this file from your PowerShell profile. +