From c859948ca9d56fbc85b4059bb1237d79b69d1e3d Mon Sep 17 00:00:00 2001 From: flintwinters Date: Wed, 17 Dec 2025 00:26:57 -0500 Subject: [PATCH] feat: Propagate unwrapScalar to ShellVariablesPreferences - In configureEncoder function, set UnwrapScalar in ConfiguredShellVariablesPreferences. - This ensures the -r flag's state is passed to the shell encoder for raw output control. --- cmd/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/utils.go b/cmd/utils.go index 4cecccfc..c61f1132 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -202,6 +202,7 @@ func configureEncoder() (yqlib.Encoder, error) { yqlib.ConfiguredYamlPreferences.UnwrapScalar = unwrapScalar yqlib.ConfiguredPropertiesPreferences.UnwrapScalar = unwrapScalar yqlib.ConfiguredJSONPreferences.UnwrapScalar = unwrapScalar + yqlib.ConfiguredShellVariablesPreferences.UnwrapScalar = unwrapScalar yqlib.ConfiguredYamlPreferences.ColorsEnabled = colorsEnabled yqlib.ConfiguredJSONPreferences.ColorsEnabled = colorsEnabled