From a84c2eb92cb4b4e4e01fa3822fb1e9c0a32cd3e7 Mon Sep 17 00:00:00 2001 From: flintwinters Date: Wed, 17 Dec 2025 00:26:49 -0500 Subject: [PATCH] feat: Add UnwrapScalar to ShellVariablesPreferences - Add UnwrapScalar boolean field to ShellVariablesPreferences struct. - Initialize UnwrapScalar to false in NewDefaultShellVariablesPreferences. - This preference will control whether shell output should be quoted or raw. --- pkg/yqlib/shellvariables.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/yqlib/shellvariables.go b/pkg/yqlib/shellvariables.go index 75801cda..d111a98a 100644 --- a/pkg/yqlib/shellvariables.go +++ b/pkg/yqlib/shellvariables.go @@ -2,11 +2,13 @@ package yqlib type ShellVariablesPreferences struct { KeySeparator string + UnwrapScalar bool } func NewDefaultShellVariablesPreferences() ShellVariablesPreferences { return ShellVariablesPreferences{ KeySeparator: "_", + UnwrapScalar: false, } }