1
0
Fork 0
forked from goffee/goffee

update go

This commit is contained in:
Zeni Kim 2026-05-06 21:42:10 -05:00
parent 03d04bbf43
commit e4563d161e
4 changed files with 109 additions and 338 deletions

View file

@ -115,8 +115,8 @@ var newCmd = &cobra.Command{
projectPath := pwd + "/" + projectName
//remove .github folder
os.RemoveAll(projectPath + "/.github")
//remove .git folder
os.RemoveAll(projectPath + "/.git")
// copy the env file
CopyFile(filepath.Join(projectPath, ".env-example"), projectPath, ".env")
@ -267,7 +267,7 @@ func (cn *CmdNew) Unpack(filePath string, destPath string) {
defer file.Close()
// Unpack it
_, err = unpackit.Unpack(file, destPath)
err = unpackit.Unpack(file, destPath)
if err != nil {
fmt.Println("error unpacking the downloaded release")
os.Exit(1)