Improve error handling in kyaml libraries

This commit is contained in:
Phillip Wittrock
2019-11-12 08:16:29 -08:00
parent 1bbd8b2c43
commit b473faccca
23 changed files with 483 additions and 96 deletions

View File

@@ -22,6 +22,10 @@ var root = &cobra.Command{
}
func main() {
root.PersistentFlags().BoolVar(&cmd.StackOnError, "stack-trace", false,
"print a stack-trace on failure")
cmd.ExitOnError = true
root.AddCommand(cmd.GrepCommand())
root.AddCommand(cmd.TreeCommand())
root.AddCommand(cmd.CatCommand())