mirror of
https://github.com/mikefarah/yq.git
synced 2026-03-10 15:54:26 +00:00
- Add ShellVariablesPreferences struct with KeySeparator field (default: '_') - Update shellVariablesEncoder to use configurable separator - Add --shell-key-separator CLI flag - Add comprehensive tests for custom separator functionality - Update documentation with example usage for custom separator This feature allows users to specify a custom separator (e.g. '__') when outputting shell variables, which helps disambiguate nested keys from keys that contain underscores in their names. Example: yq -o=shell --shell-key-separator='__' file.yaml Fixes ambiguity when original YAML keys contain underscores. |
||
|---|---|---|
| .. | ||
| completion.go | ||
| constant.go | ||
| evaluate_all_command_test.go | ||
| evaluate_all_command.go | ||
| evaluate_sequence_command_test.go | ||
| evaluate_sequence_command.go | ||
| root_test.go | ||
| root.go | ||
| unwrap_flag.go | ||
| utils_test.go | ||
| utils.go | ||
| version_test.go | ||
| version.go | ||