Added "debug-node-info" flag for inspecting yq AST

This commit is contained in:
Mike Farah
2025-07-15 21:35:54 +10:00
parent d0c897f5e6
commit 8e731ac13c
8 changed files with 262 additions and 3 deletions
+1
View File
@@ -99,6 +99,7 @@ yq -P -oy sample.json
}
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose mode")
rootCmd.PersistentFlags().BoolVarP(&printNodeInfo, "debug-node-info", "", false, "debug node info")
rootCmd.PersistentFlags().BoolVarP(&outputToJSON, "tojson", "j", false, "(deprecated) output as json. Set indent to 0 to print json in one line.")
err := rootCmd.PersistentFlags().MarkDeprecated("tojson", "please use -o=json instead")