fix #2: add --create-config to create a default config file

This commit is contained in:
2026-01-05 11:02:53 +01:00
committed by T. von Dein
parent 1067d98f60
commit a02e521998
4 changed files with 86 additions and 19 deletions

View File

@@ -52,6 +52,16 @@ func Execute(output io.Writer) int {
return 0
}
if conf.CreateConfig {
msg, err := conf.WriteConfigFile()
if err != nil {
return Die(err)
}
fmt.Fprintln(output, msg)
return 0
}
if conf.StoreProgress {
progress, err := GetProgress(conf)
if err == nil {