Add CLI account check mode
This commit is contained in:
parent
b1f3df679f
commit
fbec60c356
2 changed files with 28 additions and 0 deletions
5
main.go
5
main.go
|
|
@ -18,6 +18,7 @@ func main() {
|
|||
runOnce := flag.String("run", "", "einen Umzugs-Job einmalig ausfuehren (Konto-Name oder 'all'), ohne Web-UI")
|
||||
watch := flag.Bool("watch", false, "Delta-Sync in Schleife bis Stop (Cutover-Fenster)")
|
||||
seedAccount := flag.String("seed-account", "", "Konto aus lokaler JSON-Datei in die DB schreiben (nur CLI/Test)")
|
||||
checkAccount := flag.String("check-account", "", "Konto-Logins pruefen und INBOX zaehlen, ohne zu kopieren")
|
||||
flag.Parse()
|
||||
|
||||
if err := backend.LoadConfig("config.json"); err != nil {
|
||||
|
|
@ -34,6 +35,10 @@ func main() {
|
|||
must(backend.SeedAccountFromFile(*seedAccount))
|
||||
return
|
||||
}
|
||||
if *checkAccount != "" {
|
||||
must(backend.CheckAccount(*checkAccount))
|
||||
return
|
||||
}
|
||||
|
||||
// CLI-Modus: ohne Web laufen lassen (Cronjob / Cutover).
|
||||
if *runOnce != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue