mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Improve error handling in kyaml libraries
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user