feat: use daemon flag to toggle scheduler/standalone
All checks were successful
build / build (push) Successful in 1m22s
All checks were successful
build / build (push) Successful in 1m22s
This commit is contained in:
parent
f1195adc5c
commit
08779a5941
|
|
@ -32,6 +32,7 @@ RUN mkdir -p /data/vids
|
|||
COPY <<-EOT /data/config.toml
|
||||
dry_run = false
|
||||
out_dir = "/data/vids"
|
||||
daemon = true
|
||||
|
||||
[provider]
|
||||
[provider.youtube]
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ Full `config.toml`:
|
|||
```toml
|
||||
dry_run = true # set to `false` for real run
|
||||
out_dir = "./vids" # path to archive vids
|
||||
daemon = true # true to run scheduler, false to run once
|
||||
|
||||
[provider]
|
||||
[provider.youtube]
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ type Config struct {
|
|||
Out_dir string
|
||||
Provider map[string]Provider
|
||||
Dry_run bool
|
||||
Daemon bool
|
||||
}
|
||||
|
||||
func Load(filepath string) (Config, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue