Silence cobra output when errors occur
@@ -28,6 +28,8 @@ var (
var rootCmd = &cobra.Command{
Use: "codegen",
Short: "Codegen runs code generators for the OpenShift API definitions",
+ SilenceErrors: true,
+ SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
if printVersion {
fmt.Printf("%s\n", version)
