wip: feat(cron in new config): added parser

wip: fix: remove unreachable code
wip: test cron
This commit is contained in:
2024-01-04 22:55:16 +00:00
parent 6dd0a8007c
commit 006f8278d7
3 changed files with 158 additions and 7 deletions
+13 -2
View File
@@ -1,10 +1,11 @@
package config
import (
"gitea.suyono.dev/suyono/wingmate"
"os"
"path"
"testing"
"gitea.suyono.dev/suyono/wingmate"
)
const configName = "wingmate.yaml"
@@ -65,4 +66,14 @@ service:
environ: ["ENV1=value1", "ENV2=valueX"]
user: "user1"
group: "999"
working_dir: "/path/to/working"`
working_dir: "/path/to/working"
cron:
cron-one:
command:
- command-cron
- arg0
- arg1
environ: ["ENV1=v1", "ENV2=var2"]
user: "1001"
group: "978"
schedule: "*/5 * * * 2,3"`