Skip to content

Commit

Permalink
refactor: --Withtest to --test and remove unused testdata
Browse files Browse the repository at this point in the history
--story=1
  • Loading branch information
studyzy authored and kevwan committed Nov 8, 2024
1 parent 5367092 commit f73ade3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 479 deletions.
2 changes: 1 addition & 1 deletion tools/goctl/api/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func init() {
goCmdFlags.StringVar(&gogen.VarStringHome, "home")
goCmdFlags.StringVar(&gogen.VarStringRemote, "remote")
goCmdFlags.StringVar(&gogen.VarStringBranch, "branch")
goCmdFlags.BoolVar(&gogen.VarBoolWithTest, "withtest")
goCmdFlags.BoolVar(&gogen.VarBoolWithTest, "test")
goCmdFlags.StringVarWithDefaultValue(&gogen.VarStringStyle, "style", config.DefaultFormat)

javaCmdFlags.StringVar(&javagen.VarStringDir, "dir")
Expand Down
3 changes: 2 additions & 1 deletion tools/goctl/internal/flags/default_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"home": "{{.global.home}}",
"remote": "{{.global.remote}}",
"branch": "{{.global.branch}}",
"style": "{{.global.style}}"
"style": "{{.global.style}}",
"test": "Generate test files"
},
"new": {
"short": "Fast create api service",
Expand Down
Loading

0 comments on commit f73ade3

Please sign in to comment.