1
0
Fork 0
forked from goffee/goffee

fix uncompress to forgego

This commit is contained in:
Zeni Kim 2024-09-18 11:55:36 -05:00
parent 48584d061c
commit c4a9bd8a01
2 changed files with 4 additions and 5 deletions

View file

@ -2,7 +2,7 @@
### What's Goffee? ### What's Goffee?
`Goffee` is the`cli` tool of the framework, it helps you create new projects and perform other tasks. `Goffee` is the`cli` tool of the Goffee framework, it helps you create new projects and perform other tasks.
### Install ### Install
@ -25,5 +25,4 @@ goffee new myapp git.smarteching.com/goffee/myapp
To start the app in the `live reloading` mode for development, first cd into the project directory, then run the following command: To start the app in the `live reloading` mode for development, first cd into the project directory, then run the following command:
```bash ```bash
goffee run:dev goffee run:dev
``` ```
Goffe is a tool building over a fork of the awesome project of Harran Ali <harran.m@gmail.com>

View file

@ -79,7 +79,7 @@ var newCmd = &cobra.Command{
os.Exit(0) os.Exit(0)
} }
// Download the config from github // Download the config from git.smarteching.com
fmt.Println("Preparing ...") fmt.Println("Preparing ...")
var config Config var config Config
@ -109,7 +109,7 @@ var newCmd = &cobra.Command{
cn.Unpack(filePath, pwd) cn.Unpack(filePath, pwd)
// Rename to the user's given project name // Rename to the user's given project name
os.Rename("./cup-"+removeFirstCHar(repoMeta.TagName), "./"+projectName) //first char is `v` os.Rename("./cup", "./"+projectName) //first char is `v`
// Remove the downloaded cup archive // Remove the downloaded cup archive
os.Remove(filePath) os.Remove(filePath)