mirror of
https://github.com/wonli/aqi.git
synced 2025-09-26 20:51:23 +08:00
*
This commit is contained in:
@@ -119,9 +119,8 @@ func createProject(name, packageName string) {
|
||||
fmt.Printf("Successfully created project: %s\n", name)
|
||||
}
|
||||
|
||||
// runGoModTidy 在指定目录先更新依赖然后执行 go mod tidy
|
||||
// runGoModTidy 在指定目录先更新依赖然后执行
|
||||
func runGoModTidy(projectDir string) error {
|
||||
// 先执行 go get -u github.com/wonli/aqi@latest 更新到最新版本
|
||||
getCmd := exec.Command("go", "get", "-u", "github.com/wonli/aqi@latest")
|
||||
getCmd.Dir = projectDir
|
||||
getCmd.Stdout = os.Stdout
|
||||
|
@@ -6,7 +6,7 @@ require (
|
||||
github.com/gin-gonic/gin v1.10.1
|
||||
github.com/spf13/cobra v1.10.1
|
||||
github.com/spf13/viper v1.20.1
|
||||
github.com/wonli/aqi v1.4.2
|
||||
github.com/wonli/aqi v1.4.5
|
||||
golang.org/x/text v0.28.0
|
||||
gorm.io/gen v0.3.27
|
||||
gorm.io/gorm v1.30.2
|
||||
|
Reference in New Issue
Block a user