optimization: change the configuration file from being read globally to being read independently.

pull/1960/head
Gordon 2 years ago
parent 5f2f56bcaf
commit d0b16a6c16

@ -28,6 +28,7 @@ type CronTaskCmd struct {
func NewCronTaskCmd() *CronTaskCmd { func NewCronTaskCmd() *CronTaskCmd {
ret := &CronTaskCmd{RootCmd: NewRootCmd("cronTask", WithCronTaskLogName()), ret := &CronTaskCmd{RootCmd: NewRootCmd("cronTask", WithCronTaskLogName()),
initFunc: tools.StartTask} initFunc: tools.StartTask}
ret.addRunE()
ret.SetRootCmdPt(ret) ret.SetRootCmdPt(ret)
return ret return ret
} }

Loading…
Cancel
Save