yq/pkg/yqlib/shellvariables.go
flintwinters a84c2eb92c 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.
2025-12-30 21:22:07 -05:00

16 lines
334 B
Go

package yqlib
type ShellVariablesPreferences struct {
KeySeparator string
UnwrapScalar bool
}
func NewDefaultShellVariablesPreferences() ShellVariablesPreferences {
return ShellVariablesPreferences{
KeySeparator: "_",
UnwrapScalar: false,
}
}
var ConfiguredShellVariablesPreferences = NewDefaultShellVariablesPreferences()