fix: Duplicate error message from cobra init boilerplates (#1463)
This commit is contained in:
		@ -67,7 +67,10 @@ to quickly create a Cobra application.` + "`" + `,
 | 
				
			|||||||
// Execute adds all child commands to the root command and sets flags appropriately.
 | 
					// Execute adds all child commands to the root command and sets flags appropriately.
 | 
				
			||||||
// This is called by main.main(). It only needs to happen once to the rootCmd.
 | 
					// This is called by main.main(). It only needs to happen once to the rootCmd.
 | 
				
			||||||
func Execute() {
 | 
					func Execute() {
 | 
				
			||||||
	cobra.CheckErr(rootCmd.Execute())
 | 
						err := rootCmd.Execute()
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							os.Exit(1)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user