Skip to content

Commit

Permalink
- [*] use jsoncfg as self config parser
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed May 17, 2019
1 parent 7247e4d commit b3f447d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli-ext.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

type rootT struct {
cli.Helper{{range .Options}}
{{.Name}} {{.Type}} `cli:"{{.Flag}}" usage:"{{.Usage}}"{{if eq .Name "Self" }} json:"-" parser:"jsonfile"{{end}}{{if .Value}} dft:"{{.Value}}"{{end}}`{{end}}
{{.Name}} {{.Type}} `cli:"{{.Flag}}" usage:"{{.Usage}}"{{if eq .Name "Self" }} json:"-" parser:"jsoncfg"{{end}}{{if .Value}} dft:"{{.Value}}"{{end}}`{{end}}
}

var root = &cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cli-std.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

type rootT struct {
cli.Helper{{range .Options}}
{{.Name}} {{.Type}} `cli:"{{.Flag}}" usage:"{{.Usage}}"{{if eq .Name "Self" }} json:"-" parser:"jsonfile"{{end}}{{if .Value}} dft:"{{.Value}}"{{end}}`{{end}}
{{.Name}} {{.Type}} `cli:"{{.Flag}}" usage:"{{.Usage}}"{{if eq .Name "Self" }} json:"-" parser:"jsoncfg"{{end}}{{if .Value}} dft:"{{.Value}}"{{end}}`{{end}}
}

var root = &cli.Command{
Expand Down

0 comments on commit b3f447d

Please sign in to comment.