Co-authored-by: kim <xutao@xiaoheiban.cn>
@ -27,9 +27,9 @@ service {{.name}}-api {
func NewService(c *cli.Context) error {
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)