We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2cceb97 + f16acc9 commit 6b07e9bCopy full SHA for 6b07e9b
1 file changed
cmd/root/root.go
@@ -179,6 +179,15 @@ We collect anonymous usage data to help improve cagent. To disable:
179
}
180
return nil
181
182
+ if rootCmd.RunE != nil {
183
+ originalRunE := rootCmd.RunE
184
+ rootCmd.RunE = func(cmd *cobra.Command, args []string) error {
185
+ if err := originalRunE(cmd, args); err != nil {
186
+ return processErr(cmd.Context(), err, stderr, rootCmd)
187
+ }
188
+ return nil
189
190
191
return rootCmd
192
}, metadata.Metadata{
193
SchemaVersion: "0.1.0",
0 commit comments