From 3c6085ffa7942dd190d27b275b85f9f01f11fdeb Mon Sep 17 00:00:00 2001 From: JungleHornet <86211409+JungleHornet@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:30:36 +0200 Subject: [PATCH 1/2] made first letter of default toggle flag usage lowercase according to cobra convention --- tpl/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/main.go b/tpl/main.go index 009524c..4429b82 100644 --- a/tpl/main.go +++ b/tpl/main.go @@ -87,7 +87,7 @@ func init() { {{ end }} // Cobra also supports local flags, which will only run // when this action is called directly. - rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + rootCmd.Flags().BoolP("toggle", "t", false, "help message for toggle") } {{ if .Viper -}} From 2a4ab93ad64e31c5573d3f0a52e930abbe9366c6 Mon Sep 17 00:00:00 2001 From: JungleHornet <86211409+JungleHornet@users.noreply.github.com> Date: Fri, 12 Jul 2024 18:17:10 +0200 Subject: [PATCH 2/2] made first letter of default new command toggle flag usage lowercase according to cobra convention --- tpl/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/main.go b/tpl/main.go index 4429b82..773ccdd 100644 --- a/tpl/main.go +++ b/tpl/main.go @@ -157,7 +157,7 @@ func init() { // Cobra supports local flags which will only run when this command // is called directly, e.g.: - // {{ .CmdName }}Cmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") + // {{ .CmdName }}Cmd.Flags().BoolP("toggle", "t", false, "help message for toggle") } `) }