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