File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
+ ## [ v2.7.0] ( https://github.com/vultr/vultr-cli/compare/v2.6.0..v2.7.0 ) (2021-07-16)
3
+ ### Dependencies
4
+ * 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 )
5
+
6
+ ### Enhancements
7
+ * Instances: Add image_id support [ PR 169] ( https://github.com/vultr/vultr-cli/pull/169 )
8
+ * Bare-metal: Add image_id support [ PR 169] ( https://github.com/vultr/vultr-cli/pull/169 )
9
+ * Add documentation for autocompletions in README
2
10
3
11
## [ v2.6.0] ( https://github.com/vultr/vultr-cli/compare/v2.5.3..v2.6.0 ) (2021-07-07)
4
12
### Dependencies
Original file line number Diff line number Diff line change @@ -133,5 +133,46 @@ Currently the only available field that you can use with a config file is `api-k
133
133
134
134
` api-key: MYKEY `
135
135
136
+ ### CLI Autocompletion
137
+ ` vultr-cli completion ` will return autocompletions, but this feature requires setup.
138
+
139
+ Some guides:
140
+
141
+ <pre >
142
+ <h4 >Bash:</h4 >
143
+ $ source <(yourprogram completion bash)
144
+
145
+ <b >To load completions for each session, execute once:</b >
146
+ <b >Linux:</b >
147
+ $ yourprogram completion bash > /etc/bash_completion.d/yourprogram
148
+
149
+ <b >macOS:</b >
150
+ $ yourprogram completion bash > /usr/local/etc/bash_completion.d/yourprogram
151
+
152
+ <h4 >Zsh:</h4 >
153
+ <b >If shell completion is not already enabled in your environment,
154
+ you will need to enable it. You can execute the following once:</b >
155
+
156
+ $ echo "autoload -U compinit; compinit" >> ~/.zshrc
157
+
158
+ <b >To load completions for each session, execute once:</b >
159
+ $ yourprogram completion zsh > "${fpath[1]}/_yourprogram"
160
+
161
+ You will need to start a new shell for this setup to take effect.
162
+
163
+ <h4 >fish:</h4 >
164
+ $ yourprogram completion fish | source
165
+
166
+ <b >To load completions for each session, execute once:</b >
167
+ $ yourprogram completion fish > ~/.config/fish/completions/yourprogram.fish
168
+
169
+ <h4 >PowerShell:</h4 >
170
+ PS> yourprogram completion powershell | Out-String | Invoke-Expression
171
+
172
+ <b >To load completions for every new session, run:</b >
173
+ PS> yourprogram completion powershell > yourprogram.ps1
174
+ <b >and source this file from your PowerShell profile.</b >
175
+ </pre >
176
+
136
177
## Contributing
137
178
Feel free to send pull requests our way! Please see the [ contributing guidelines] ( CONTRIBUTING.md ) .
Original file line number Diff line number Diff line change @@ -31,5 +31,5 @@ var versionCmd = &cobra.Command{
31
31
}
32
32
33
33
func version () string {
34
- return "Vultr-cli v2.6 .0"
34
+ return "Vultr-cli v2.7 .0"
35
35
}
You can’t perform that action at this time.
0 commit comments