colorise output

This commit is contained in:
Mike Farah
2025-12-08 20:30:47 +11:00
parent 8162f3a100
commit 554bf5a2f2
6 changed files with 131 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
package yqlib
type HclPreferences struct {
ColorsEnabled bool
}
func NewDefaultHclPreferences() HclPreferences {
return HclPreferences{ColorsEnabled: false}
}
func (p *HclPreferences) Copy() HclPreferences {
return HclPreferences{ColorsEnabled: p.ColorsEnabled}
}
var ConfiguredHclPreferences = NewDefaultHclPreferences()