mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
parent
db99addc64
commit
4382ec0e0d
@ -19,6 +19,10 @@ var apiTemplate string
|
||||
|
||||
// ApiCommand create api template file
|
||||
func ApiCommand(c *cli.Context) error {
|
||||
if c.NumFlags() == 0 {
|
||||
cli.ShowAppHelpAndExit(c, 1)
|
||||
}
|
||||
|
||||
apiFile := c.String("o")
|
||||
if len(apiFile) == 0 {
|
||||
return errors.New("missing -o")
|
||||
|
Loading…
Reference in New Issue
Block a user