Co-authored-by: kim <xutao@xiaoheiban.cn>
master
kingxt 4 years ago committed by GitHub
parent 95aa65efb9
commit f32c6a9b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,9 +27,9 @@ service {{.name}}-api {
func NewService(c *cli.Context) error { func NewService(c *cli.Context) error {
args := c.Args() args := c.Args()
dirName := "greet" dirName := args.First()
if len(args) > 0 { if len(dirName) == 0 {
dirName = args.First() dirName = "greet"
} }
abs, err := filepath.Abs(dirName) abs, err := filepath.Abs(dirName)

Loading…
Cancel
Save