Fix handling for non-existent or empty config files #61
No reviewers
Labels
No labels
Wrong-Place
bug
cli
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
ice
invalid
question
request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/multi-downloader-nx#61
Loading…
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I recently noticed that if I manually remove the contents of
token.ymlbut keep the file, the program throws an error. A little playing around and I found that the same things happen with entries in other config files.These changes fix the handling for that. Instead of throwing errors, it will warn the user that their entries are invalid and manually set them to the default.
I considering a few other things in place of hard coding in the default config values (in case they ever change), but in the end, I decided not to. My main alternative would have been to have default
cli-defaults.yml,bin-path.ymlanddir-path.ymlfiles somewhere else that it would pull from instead. If the maintainers think that's a better idea, let me know and I can do that.