cobra-cli
cobra-cli copied to clipboard
Cobra CLI tool to generate applications and commands
1. Create a demo ``` mkdir -p cobra cd cobra cobra-cli init --viper demo ``` 2. Check the generated main.go file ``` $ cat demo/main.go /* Copyright © 2023 NAME...
fix tpl
**Description:** This PR adds the flag `--skipLicense` to the `init` command to skip license creation. ``` ./bin/cobra-cli_darwin_amd64 init --help Initialize (cobra init) will create a new application, with a license...
**Description:** This PR adds a version subcommand. Note: The version in the example is `1.3.0-13-gd146541` because we are [13 commits ](https://github.com/spf13/cobra-cli/compare/v1.3.0...main)to main since the v1.3.0 release. ``` ./bin/cobra-cli_darwin_amd64 --version cobra-cli...
How to make the following WARNING gone? godror WARNING: discrepancy between DBTIMEZONE ("+00:00"=0) and SYSTIMESTAMP ("-05:00"=-500) - set connection timezone, see https://github.com/godror/godror/blob/master/doc/timezone.md I tried to play with Timezone in CommonParms,...
The European Union Public Licence is a free software licence that is drafted and maintained by the European Commission. It focuses on being consistent with the copyright laws in all...
The first letter in the default help message for the toggle flag was uppercase, so I made it lowercase according to cobra convention.
Hello there, I used the init flag to init the library and the script seem's to overwrite the main file without prompting about it. It's annoying behaviors and should be...