Skip to content
Myr

fix: Duplicate error message from cobra init boilerplates (#1463)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ANGkeith · committed by GitHub · parent 6f84ef4 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:cobra/tpl/main.go+4 added-1 removed
65 unmodified lines
6667// Execute adds all child commands to the root command and sets flags appropriately.68// This is called by main.main(). It only needs to happen once to the rootCmd.69func Execute() {70 cobra.CheckErr(rootCmd.Execute())70 err := rootCmd.Execute()71 if err != nil {72 os.Exit(1)73 }74}7576func init() {77{{- if .Viper }}
86 unmodified lines