File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,9 +112,9 @@ type hookConfig struct {
112112}
113113
114114type templateConfig struct {
115- Functions string `json:"functions" mapstructure:"functions" yaml:"functions"`
116- Options []string `json:"options" mapstructure:"options" yaml:"options"`
117- functions chezmoi.TemplateFunctions
115+ FunctionsStr string `json:"functions" mapstructure:"functions" yaml:"functions"`
116+ Options []string `json:"options" mapstructure:"options" yaml:"options"`
117+ functions chezmoi.TemplateFunctions
118118}
119119
120120type warningsConfig struct {
@@ -3153,8 +3153,8 @@ func newConfigFile(bds *xdg.BaseDirectorySpecification) ConfigFile {
31533153 Safe : true ,
31543154 TempDir : chezmoi .NewAbsPath (os .TempDir ()),
31553155 Template : templateConfig {
3156- Functions : "sprig" ,
3157- Options : chezmoi .DefaultTemplateOptions ,
3156+ FunctionsStr : "sprig" ,
3157+ Options : chezmoi .DefaultTemplateOptions ,
31583158 },
31593159 Umask : chezmoi .Umask ,
31603160 UseBuiltinAge : autoBool {
Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ func TestConfigFileFormatRoundTrip(t *testing.T) {
8888 },
8989 ScriptEnv : map [string ]string {},
9090 Template : templateConfig {
91- Functions : defaultSentinel ,
92- Options : []string {},
91+ FunctionsStr : defaultSentinel ,
92+ Options : []string {},
9393 },
9494 TextConv : []* textConvElement {},
9595 UseBuiltinAge : autoBool {value : false },
You can’t perform that action at this time.
0 commit comments