mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
Include instruction for building the cobra tool in README.md
This commit is contained in:
parent
6a8bd97bdb
commit
cb51c97a4e
1 changed files with 6 additions and 0 deletions
|
@ -172,6 +172,12 @@ func main() {
|
||||||
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.
|
||||||
|
|
||||||
|
In order to use the cobra command, compile it using the following command:
|
||||||
|
|
||||||
|
> go install github.com/spf13/cobra/cobra
|
||||||
|
|
||||||
|
This will create the cobra executable under your go path bin directory!
|
||||||
|
|
||||||
### cobra init
|
### cobra init
|
||||||
|
|
||||||
The `cobra init [yourApp]` command will create your initial application code
|
The `cobra init [yourApp]` command will create your initial application code
|
||||||
|
|
Loading…
Reference in a new issue