Skip to content

Commit 2549927

Browse files
committed
rename external_cmd to external_cmds
1 parent b0ce1d1 commit 2549927

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type config struct {
2020
//需要追加监听的目录,默认是当前文件夹,
2121
WatchPaths []string `yaml:"watch_paths"`
2222
//运行前额外执行的命令
23-
ExternalCmd []string `yaml:"external_cmd"`
23+
ExternalCmds []string `yaml:"external_cmds"`
2424
//执行时的额外参数
2525
CmdArgs []string `yaml:"cmd_args"`
2626
//构建时的额外参数

gowatch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func Start(appname string) {
174174
appname = "./" + appname
175175
}
176176

177-
for _, externalCmd := range cfg.ExternalCmd {
177+
for _, externalCmd := range cfg.ExternalCmds {
178178
log.Infof("Run external cmd '%s'", externalCmd)
179179
cmdArr := strings.Split(externalCmd, " ")
180180
externalCmdExec := exec.Command(cmdArr[0])

0 commit comments

Comments
 (0)