mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 12:41: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
|
var input string
|
||||||
fmt.Print("Save this data? (Y/n) ")
|
fmt.Print("Save this data? (Y/n) ")
|
||||||
|
fmt.Scanln(&input)
|
||||||
if input == "" || strings.ToLower(input) == "y" {
|
if input == "" || strings.ToLower(input) == "y" {
|
||||||
util.SaveConfig(cfgPath, config)
|
util.SaveConfig(cfgPath, config)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user