mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 04:31:45 +00:00
bugfix: added user input for confirming new config
This commit is contained in:
parent
7d6184cf4f
commit
6d4f6db33d
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user