增加 指令支持

This commit is contained in:
dengsgo
2020-01-02 16:38:26 +08:00
parent 9defc968ba
commit 4e0b9f54f6
5 changed files with 82 additions and 7 deletions

View File

@@ -18,8 +18,12 @@ type FileGirl struct {
IncludeDirsRec map[string]bool `yaml:"-"`
}
Command struct {
Instruction []string `yaml:"instruction"`
Exec []string `yaml:"exec"`
DelayMillSecond int `yaml:"delayMillSecond"`
// convert to
InstructionMap map[string]bool `yaml:"-"`
}
Notifier struct {
CallUrl string `yaml:"callUrl"`