feat: added config implementation using viper
This commit is contained in:
parent
4d55a3edc2
commit
773dc556cd
2 changed files with 61 additions and 9 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue