feat: added config implementation using viper

This commit is contained in:
David Allen 2025-09-07 14:43:45 -06:00
parent 4d55a3edc2
commit 773dc556cd
Signed by: towk
GPG key ID: 0430CDBE22619155
2 changed files with 61 additions and 9 deletions

View file

@ -307,12 +307,3 @@ func init() {
rootCmd.AddCommand(&downloadCmd)
}
// helper to write downloaded files
func writeFiles(path string, body []byte) {
var err = os.WriteFile(path, body, 0o755)
if err != nil {
log.Error().Err(err).Msg("failed to write file(s) from download")
os.Exit(1)
}
}