Skip to content

Commit 054448c

Browse files
committed
chore: snapshot
1 parent 1251066 commit 054448c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

internal/cmd/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ type hookConfig struct {
112112
}
113113

114114
type 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

120120
type 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{

internal/cmd/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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},

0 commit comments

Comments
 (0)