mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
add version to install command
Recent versions of Go require to specify a version when installing. This uses "latest".
This commit is contained in:
parent
19c9c74384
commit
bb5a299a8e
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
Cobra provides its own program that will create your application and add any
|
Cobra provides its own program that will create your application and add any
|
||||||
commands you want. It's the easiest way to incorporate Cobra into your application.
|
commands you want. It's the easiest way to incorporate Cobra into your application.
|
||||||
|
|
||||||
Install the cobra generator with the command `go install github.com/spf13/cobra/cobra`.
|
Install the cobra generator with the command `go install github.com/spf13/cobra/cobra@latest`.
|
||||||
Go will automatically install it in your `$GOPATH/bin` directory which should be in your $PATH.
|
Go will automatically install it in your `$GOPATH/bin` directory which should be in your $PATH.
|
||||||
|
|
||||||
Once installed you should have the `cobra` command available. Confirm by typing `cobra` at a
|
Once installed you should have the `cobra` command available. Confirm by typing `cobra` at a
|
||||||
|
|
Loading…
Add table
Reference in a new issue