更新获取工作路径代码,修改go.mod的go版本为1.14
This commit is contained in:
@@ -18,6 +18,7 @@ package gva
|
||||
import (
|
||||
"gin-vue-admin/utils"
|
||||
"github.com/spf13/cobra"
|
||||
"os"
|
||||
)
|
||||
|
||||
// runCmd represents the run command
|
||||
@@ -31,7 +32,8 @@ var runCmd = &cobra.Command{
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
w := utils.NewWatch()
|
||||
t := utils.NewT()
|
||||
go w.Watch("./", t)
|
||||
path, _ := os.Getwd()
|
||||
go w.Watch(path, t)
|
||||
t.RunTask()
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user