mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-04 11:25:37 +00:00
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.
This commit is contained in:
parent
ac2889c296
commit
a84c2eb92c
@ -2,11 +2,13 @@ package yqlib
|
|||||||
|
|
||||||
type ShellVariablesPreferences struct {
|
type ShellVariablesPreferences struct {
|
||||||
KeySeparator string
|
KeySeparator string
|
||||||
|
UnwrapScalar bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDefaultShellVariablesPreferences() ShellVariablesPreferences {
|
func NewDefaultShellVariablesPreferences() ShellVariablesPreferences {
|
||||||
return ShellVariablesPreferences{
|
return ShellVariablesPreferences{
|
||||||
KeySeparator: "_",
|
KeySeparator: "_",
|
||||||
|
UnwrapScalar: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user