mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-07 02:48:27 +08:00
Add INI support
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package yqlib
|
||||
|
||||
type INIPreferences struct {
|
||||
Indent int
|
||||
ColorsEnabled bool
|
||||
}
|
||||
|
||||
func NewDefaultINIPreferences() INIPreferences {
|
||||
return INIPreferences{
|
||||
Indent: 2,
|
||||
ColorsEnabled: false,
|
||||
}
|
||||
}
|
||||
|
||||
func (p *INIPreferences) Copy() INIPreferences {
|
||||
return INIPreferences{
|
||||
Indent: p.Indent,
|
||||
ColorsEnabled: p.ColorsEnabled,
|
||||
}
|
||||
}
|
||||
|
||||
var ConfiguredINIPreferences = NewDefaultINIPreferences()
|
||||
Reference in New Issue
Block a user