Skip to content

Commit d4fc75b

Browse files
committed
feat: add json tags to Config struct
1 parent 3fd74bd commit d4fc75b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/config.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ import (
99

1010
// Config is marshallable content of config.toml
1111
type Config struct {
12-
Alias map[string][]string `toml:"alias"`
13-
Build configBuild `toml:"build"`
14-
Get configGet `toml:"get"`
12+
Alias map[string][]string `toml:"alias" json:"alias"`
13+
Build configBuild `toml:"build" json:"build"`
14+
Get configGet `toml:"get" json:"get"`
1515
}
1616

1717
// configBuild is a config for 'volt build'.
1818
type configBuild struct {
19-
Strategy string `toml:"strategy"`
19+
Strategy string `toml:"strategy" json:"strategy"`
2020
}
2121

2222
// configGet is a config for 'volt get'.
2323
type configGet struct {
24-
CreateSkeletonPlugconf *bool `toml:"create_skeleton_plugconf"`
25-
FallbackGitCmd *bool `toml:"fallback_git_cmd"`
24+
CreateSkeletonPlugconf *bool `toml:"create_skeleton_plugconf" json:"create_skeleton_plugconf"`
25+
FallbackGitCmd *bool `toml:"fallback_git_cmd" json:"fallback_git_cmd"`
2626
}
2727

2828
const (

0 commit comments

Comments
 (0)