yq/cmd
cobyfrombrooklyn-bot 79a2130107 fix: preserve original filename when using --front-matter
When using --front-matter, yq creates a temporary file for the
extracted YAML content but replaces the original filename in args
with the temp file path. This caused the 'filename' operator to
return the temp file path instead of the original filename.

Added a filename alias mechanism: when front matter processing
replaces the file path, it registers the original filename as an
alias. The readDocuments and stream evaluator functions resolve
aliases before setting candidateNode.filename.

Fixes #2538
2026-02-24 10:41:47 -05:00
..
completion.go Fix: shell-completion (#2006) 2024-04-22 14:15:36 +10:00
constant.go Added "debug-node-info" flag for inspecting yq AST 2025-07-15 21:35:54 +10:00
evaluate_all_command_test.go Cursor generated unit tests 2025-10-12 15:38:40 +11:00
evaluate_all_command.go fix: preserve original filename when using --front-matter 2026-02-24 10:41:47 -05:00
evaluate_sequence_command_test.go Cursor generated unit tests 2025-10-12 15:38:40 +11:00
evaluate_sequence_command.go fix: preserve original filename when using --front-matter 2026-02-24 10:41:47 -05:00
root_test.go Cursor generated unit tests 2025-10-12 15:38:40 +11:00
root.go feat: Add --yaml-compact-seq-indent / -c flag for compact sequence indentation (#2583) 2026-01-31 14:50:01 +11:00
unwrap_flag.go Spellig with cspell 2023-09-19 10:43:11 +10:00
utils_test.go Switch to uk (#2557) 2025-12-20 19:11:48 +11:00
utils.go Unwrap scalars in shell output mode. (#2548) 2026-01-01 15:21:55 +11:00
version_test.go More tests 2026-02-01 10:27:18 +11:00
version.go Bumping version 2026-02-14 18:43:09 +11:00