1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-09-16 09:16:35 +02:00

fix new path

This commit is contained in:
Tony
2019-09-29 10:07:41 +08:00
parent 3ff6f39a56
commit 792f4374bb

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"os"
"path"
"path/filepath"
"github.com/urfave/cli"
)
@@ -25,6 +26,7 @@ func runNew(ctx *cli.Context) error {
pwd, _ := os.Getwd()
p.Path = path.Join(pwd, p.Name)
}
p.Path = filepath.FromSlash(p.Path)
// Create a project
if err := create(); err != nil {
return err