create新建项目完成

This commit is contained in:
许 洋 2024-08-08 20:07:00 +08:00
parent ba00d7c479
commit 086e30c6ca

View File

@ -47,6 +47,11 @@ func handleCreateCommand(args []string) {
flagSet.StringVar(&projectPath, "p", "", "Path to the new project")
flagSet.Parse(args)
if projectPath == "" {
log.Printf("Error: -p flag is required\n")
os.Exit(1)
}
err = handleRemoteTemplate(template, branch, projectPath)
if err != nil {
log.Printf("Error creating project: %s\n", err)