Config system has been overhauled, unfortunately this means this will bring a breaking change. All previous configs (which only stored session tokens) won't be used anymore and you will manually need to migrate your session tokens into the new config.
The reasons for this overhaul:
Allow for --config-path, -C flag on commands that use the config (except config which returns the path of the default config).
Config now stores global flags that are used unless overridden by flags on the running command. For example, this means if you always want to ignore cover files, you can set downloadcmd.ignore.cover in the config to true and it will be respected unless you manually use -c to override it on a per command basis.
Viper works extremely well with Cobra (its made by the same people). Cobra is the Go library I am using for the commands, I liked it so much I decided to drop my custom configuration library and use Viper.
Config system has been overhauled, unfortunately this means this will bring a breaking change. All previous configs (which only stored session tokens) won't be used anymore and you will manually need to migrate your session tokens into the new config.
The reasons for this overhaul:
--config-path
,-C
flag on commands that use the config (exceptconfig
which returns the path of the default config).downloadcmd.ignore.cover
in the config totrue
and it will be respected unless you manually use-c
to override it on a per command basis.The original idea to allow for overriding configs is thanks to this issue: https://github.com/tywil04/slavartdl/issues/4