mirror of
https://github.com/mikefarah/yq.git
synced 2026-03-10 15:54:26 +00:00
16 lines
338 B
Go
16 lines
338 B
Go
package yqlib
|
|
|
|
type TomlPreferences struct {
|
|
ColorsEnabled bool
|
|
}
|
|
|
|
func NewDefaultTomlPreferences() TomlPreferences {
|
|
return TomlPreferences{ColorsEnabled: false}
|
|
}
|
|
|
|
func (p *TomlPreferences) Copy() TomlPreferences {
|
|
return TomlPreferences{ColorsEnabled: p.ColorsEnabled}
|
|
}
|
|
|
|
var ConfiguredTomlPreferences = NewDefaultTomlPreferences()
|