mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-16 14:43:53 +00:00
🔨 update CLIYesOrNoReader to include default value
This commit is contained in:
1 parent
86e4f74f10
commit
b7ac3bc549
2 files changed
+21
-3
No files matched your search
@@ -272,7 +272,9 @@ func getClientDoFunc(
|
||||
}
|
||||
activeProxyClientsCount := len(activeProxyClients)
|
||||
var yesOrNoMessage string
|
||||
var yesOrNoDefault bool
|
||||
if activeProxyClientsCount == 0 {
|
||||
yesOrNoDefault = false
|
||||
yesOrNoMessage = utils.Colored(
|
||||
utils.Colors.Red,
|
||||
"No active proxies found. Do you want to continue?",
|
||||
@@ -287,7 +289,7 @@ func getClientDoFunc(
|
||||
)
|
||||
}
|
||||
fmt.Println()
|
||||
proceed := readers.CLIYesOrNoReader(yesOrNoMessage)
|
||||
proceed := readers.CLIYesOrNoReader(yesOrNoMessage, yesOrNoDefault)
|
||||
if !proceed {
|
||||
utils.PrintAndExit("Exiting...")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user