create新建项目完成
This commit is contained in:
parent
ba00d7c479
commit
086e30c6ca
5
main.go
5
main.go
@ -47,6 +47,11 @@ func handleCreateCommand(args []string) {
|
|||||||
flagSet.StringVar(&projectPath, "p", "", "Path to the new project")
|
flagSet.StringVar(&projectPath, "p", "", "Path to the new project")
|
||||||
flagSet.Parse(args)
|
flagSet.Parse(args)
|
||||||
|
|
||||||
|
if projectPath == "" {
|
||||||
|
log.Printf("Error: -p flag is required\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
err = handleRemoteTemplate(template, branch, projectPath)
|
err = handleRemoteTemplate(template, branch, projectPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error creating project: %s\n", err)
|
log.Printf("Error creating project: %s\n", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user