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
+5
View File
@@ -105,6 +105,11 @@ func evaluateSequence(cmd *cobra.Command, args []string) (cmdError error) {
}
printer := yqlib.NewPrinter(encoder, printerWriter)
if printNodeInfo {
printer = yqlib.NewNodeInfoPrinter(printerWriter)
}
if nulSepOutput {
printer.SetNulSepOutput(true)
}