bugfix: added user input for confirming new config

This commit is contained in:
Baipyrus 2024-09-24 15:24:17 +02:00
parent 7d6184cf4f
commit 6d4f6db33d

View File

@ -37,6 +37,7 @@ var saveCmd = &cobra.Command{
var input string
fmt.Print("Save this data? (Y/n) ")
fmt.Scanln(&input)
if input == "" || strings.ToLower(input) == "y" {
util.SaveConfig(cfgPath, config)
}