热更新

缺少具体配置 监控文件以及防抖
This commit is contained in:
songzhibin97
2020-11-15 15:51:16 +08:00
parent a9432b5d9c
commit 7c188fa7ce
3 changed files with 101 additions and 53 deletions
+5 -1
View File
@@ -16,6 +16,7 @@ limitations under the License.
package gva
import (
"gin-vue-admin/utils"
"github.com/spf13/cobra"
)
@@ -28,7 +29,10 @@ var runCmd = &cobra.Command{
which compiles and runs the go codes asynchronously when codes change.
`,
Run: func(cmd *cobra.Command, args []string) {
// todo 未实现
w := utils.NewWatch()
t := utils.NewT()
go w.Watch("./", t)
t.RunTask()
},
}