diff --git a/cmd/root.go b/cmd/root.go index e8bd04f..3b16e2d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -65,7 +65,10 @@ func run(cmd *cobra.Command, args []string) error { generatedObjects = append(generatedObjects, generated...) } - os.Stdout.Write([]byte(generatedObjects.String())) + if _, err := os.Stdout.Write([]byte(generatedObjects.String())); err != nil { + return err + } + return nil }