Init cobra cli
Init cobra inside the application / git project folder:
go mod init harbor-cli
~/go/bin/cobra init --pkg-name harbor-cli
go get github.com/spf13/cobra github.com/spf13/viper
To add a new command:
~/go/bin/cobra add ping
Init cobra inside the application / git project folder:
go mod init harbor-cli
~/go/bin/cobra init --pkg-name harbor-cli
go get github.com/spf13/cobra github.com/spf13/viper
To add a new command:
~/go/bin/cobra add ping