File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ func init() {
63
63
}
64
64
65
65
type cPackInput struct {
66
- g.Meta `name:"pack"`
66
+ g.Meta `name:"pack" config:"gfcli.pack" `
67
67
Src string `name:"SRC" arg:"true" v:"required" brief:"{cPackSrcBrief}"`
68
68
Dst string `name:"DST" arg:"true" v:"required" brief:"{cPackDstBrief}"`
69
69
Name string `name:"name" short:"n" brief:"{cPackNameBrief}"`
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ func init() {
81
81
82
82
type (
83
83
cRunInput struct {
84
- g.Meta `name:"run"`
84
+ g.Meta `name:"run" config:"gfcli.run" `
85
85
File string `name:"FILE" arg:"true" brief:"{cRunFileBrief}" v:"required"`
86
86
Path string `name:"path" short:"p" brief:"{cRunPathBrief}" d:"./"`
87
87
Extra string `name:"extra" short:"e" brief:"{cRunExtraBrief}"`
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ gf tpl parse -p ./template -v values.json -o ./template.parsed
47
47
48
48
type (
49
49
cTplParseInput struct {
50
- g.Meta `name:"parse" brief:"{cTplParseBrief}" eg:"{cTplParseEg}"`
50
+ g.Meta `name:"parse" config:"gfcli.tpl.parse" brief:"{cTplParseBrief}" eg:"{cTplParseEg}"`
51
51
Path string `name:"path" short:"p" brief:"template file or folder path" v:"required"`
52
52
Pattern string `name:"pattern" short:"n" brief:"template file pattern when path is a folder, default is:*" d:"*"`
53
53
Recursive bool `name:"recursive" short:"c" brief:"recursively parsing files if path is folder, default is:true" d:"true"`
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func init() {
48
48
}
49
49
50
50
type cUpInput struct {
51
- g.Meta `name:"up" config:"gfcli.up"`
51
+ g.Meta `name:"up" config:"gfcli.up"`
52
52
All bool `name:"all" short:"a" brief:"upgrade both version and cli, auto fix codes" orphan:"true"`
53
53
Cli bool `name:"cli" short:"c" brief:"also upgrade CLI tool" orphan:"true"`
54
54
Fix bool `name:"fix" short:"f" brief:"auto fix codes(it only make sense if cli is to be upgraded)" orphan:"true"`
You can’t perform that action at this time.
0 commit comments