Co-authored-by: kim <xutao@xiaoheiban.cn>
This commit is contained in:
kingxt
2020-11-09 10:06:45 +08:00
committed by GitHub
parent 95aa65efb9
commit f32c6a9b28

View File

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