mirror of
https://github.com/aykhans/sarin.git
synced 2026-12-03 13:16:17 +00:00
🔨 add CLI yes or no reader to confirm starting Dodo
This commit is contained in:
1 parent
b7ac3bc549
commit
c2ce8e587b
1 file changed
+6
@@ -81,6 +81,12 @@ func main() {
|
||||
Body: jsonConf.Body,
|
||||
}
|
||||
dodoConf.Print()
|
||||
response := readers.CLIYesOrNoReader("Do you want to continue?", true)
|
||||
if response {
|
||||
utils.PrintlnC(utils.Colors.Green, "Starting Dodo\n")
|
||||
} else {
|
||||
utils.PrintAndExit("Exiting...")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
sigChan := make(chan os.Signal, 1)
|
||||
|
||||
Reference in new issue
Block a user