yq/pkg/yqlib/doc
Robert Lee 1f2b0fe76b Add --shell-key-separator flag for customizable shell output format
- 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.
2025-11-07 20:02:58 +11:00
..
operators Improving first op test 2025-10-12 14:32:28 +11:00
usage Add --shell-key-separator flag for customizable shell output format 2025-11-07 20:02:58 +11:00
.gitignore Added get key examples 2020-11-26 11:20:53 +11:00
notification-snippet.md Removing old version notice 2022-10-25 12:47:13 +11:00