Currently the config file will be picked up when calling cogo from the same directory as .cogo_config.json. This obviously isn't great for an app thats supposed to be independent of working directories.
Currently the config uses viper to manage reading this config file AND writing the config file when it detects there isn't already one present (User is asked if they would like to create it).
I know there are many different types of configs/secret management that can be used within viper. Perhaps using env variables isn't too bad? Or maybe there needs to be a generalised location for the config file such as ~/.config/cogo similar to how https://wtfutil.com/configuration/ is done
Currently the config file will be picked up when calling cogo from the same directory as
.cogo_config.json
. This obviously isn't great for an app thats supposed to be independent of working directories.Currently the config uses
viper
to manage reading this config file AND writing the config file when it detects there isn't already one present (User is asked if they would like to create it).I know there are many different types of configs/secret management that can be used within viper. Perhaps using env variables isn't too bad? Or maybe there needs to be a generalised location for the config file such as
~/.config/cogo
similar to how https://wtfutil.com/configuration/ is done