Commit graph

3 commits

Author SHA1 Message Date
Daz Wilkin
7ab9095c84
cobra init no longer works as documented
`cobra init github.com/spf13/newApp` results in `Error: required flag(s) "pkg-name" not set`

This alternative works but it's not intuitive to me as a noob user that it's correct.

In order to test what it does, I tried `cobra init a --pkg-name=b` but then `main.go` attempts to (incorrectly) `import "b/cmd"`

I think (!?) I'd expect what you original had: `cobra init github.com/spf13/newApp` creating a directory under `{GOPATH}/src/github.com/spf13/newApp` with `github.com/spf13/newApp` as the package name.
2019-06-17 14:14:33 -07:00
Clayton Ray
50204810fd Grammar addition (#543)
Just added a comma. Read weird without it
2017-10-09 08:28:07 +02:00
Albert Nigmatzianov
e8e7fe0355 Shorten README
Fix #501
2017-10-06 12:20:24 +02:00