You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ import (
6
6
"fmt"
7
7
"os"
8
8
"strings"
9
+
"log"
9
10
10
11
"github.com/robfig/cron"
11
12
@@ -25,8 +26,24 @@ func main() {
25
26
copyDirFlag:=flag.String("copy-dir", "", "Path to a folder where HIE records should be copied locally (env: COPY_DIR, default: none)")
26
27
cronFlag:=flag.String("cron", "", "Cron expression indicating when the integrator tool should run to refresh data (env: INTEGRATOR_CRON, example: \"0 0 20 * * *\"). If cron is not supplied, \"now\" must be set.")
27
28
nowFlag:=flag.Bool("now", false, "Flag to indicate if the integrator should run immediately (env: INTEGRATOR_NOW, default: false). If used without cron, integrator will run once and then exit. If now is not set, \"cron\" must be supplied.")
29
+
logFileFlag:=flag.String("logdir", "", "Path to a directory for integrator logs to be written to.")
0 commit comments