spf13 / cobra-cli

Cobra CLI tool to generate applications and commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

latest version cobra-cli: command not found

zhongsdjn opened this issue · comments

commented
mkdir myapp
cd myapp
go mod init github.com/spf13/myapp

go get -u github.com/spf13/cobra@latest
go install github.com/spf13/cobra-cli@latest

When I excute cobra-cli init , -bash: cobra-cli: command not found
windows system: 'cobra-cli' is not recognized as an internal or external command,
operable program or batch file.
why? A month ago is normal!

Normally go install will put the binary under $GOPATH/bin.

You have to make sure $GOPATH/bin is found on your PATH variable.

commented

Normally go install will put the binary under $GOPATH/bin.

You have to make sure $GOPATH/bin is found on your PATH variable.

ok! I see!