mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-19 21:18:07 +02:00
commit
ccf31cfdb0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user