cobra-cli
cobra-cli copied to clipboard
Cobra CLI tool to generate applications and commands
- Remove go versions 1.14-17 - Add go versions 1.18-l.20
When running `cobra-cli init` on an existing project with a `main.go`, it will overwrite the `main.go`. I don't think this behavior should be a default. Could we add functionality to...
Hi there! I'm proposing a change to cobra-cli that would allow this command to find some way to make the `tpl` package more customizable. Use case: We have a CLI...
...... Args: cobra.MatchAll(cobra.MinimumNArgs(2), cobra.OnlyValidArgs), Run: cropCmdRun, } ..... func cropCmdRun(cmd *cobra.Command, args []string) { fmt.Println("crop calling .....") fmt.Printf("args :%v \n", spew.Sdump(args)) ...... build the source and run like follow: utils.exe...
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 4. Release notes Sourced from actions/setup-go's releases. v4.0.0 In scope of release we enable cache by default. The action won’t throw an error if the...
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.0.11. Release notes Sourced from actions/cache's releases. v3.0.11 What's Changed Call out cache not saved on hit by @Phantsure in actions/cache#946 Update @actions/core to 1.10.0...
Close #63.
say I have commands `hosts` and `services` and I want them both to have a subcommand `list`, how would I do that with `cobra-cli`?
This set of changes allow for adding custom command contents to be used by the generator, via templates. Changes to the README.md file should not be added, but were left...
``` running tests === RUN TestGoldenAddCmd add_test.go:28: "/build/source/cmd/testproject/cmd/test.go" and "testdata/test.go.golden" are not equal! $ diff -u /build/source/cmd/testproject/cmd/test.go testdata/test.go.golden --- /build/source/cmd/testproject/cmd/test.go 2023-01-19 16:36:00.335867015 +0000 +++ testdata/test.go.golden 1970-01-01 00:00:01.000000000 +0000 @@ -1,5...