mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Rename update-once to headless
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user