From 6eaa5126431dc2b11a4dd553d35f067712bb492e Mon Sep 17 00:00:00 2001 From: Contextualist Date: Sat, 11 Jun 2022 19:03:34 -0400 Subject: [PATCH] Rename update-once to headless --- cmd/podsync/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/podsync/main.go b/cmd/podsync/main.go index 457f925..a73923e 100644 --- a/cmd/podsync/main.go +++ b/cmd/podsync/main.go @@ -26,7 +26,7 @@ import ( type Opts struct { ConfigPath string `long:"config" short:"c" default:"config.toml" env:"PODSYNC_CONFIG_PATH"` - UpdateOnce bool `long:"update-once"` + Headless bool `long:"headless"` Debug bool `long:"debug"` NoBanner bool `long:"no-banner"` } @@ -142,8 +142,8 @@ func main() { log.WithError(err).Fatal("failed to create updater") } - // In UpdateOnce mode, Update feeds once and quit - if opts.UpdateOnce { + // In Headless mode, do one round of feed updates and quit + if opts.Headless { for _, feed := range cfg.Feeds { if err := manager.Update(ctx, feed); err != nil { log.WithError(err).Errorf("failed to update feed: %s", feed.URL)