mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-04 11:25:37 +00:00
- 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.
16 lines
334 B
Go
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()
|