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