🔨 add CLI yes or no reader to confirm starting Dodo

This commit is contained in:
Aykhan Shahsuvarov 2024-09-03 02:06:49 +04:00
parent b7ac3bc549
commit c2ce8e587b

View File

@ -81,6 +81,12 @@ func main() {
Body: jsonConf.Body, Body: jsonConf.Body,
} }
dodoConf.Print() 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()) ctx, cancel := context.WithCancel(context.Background())
sigChan := make(chan os.Signal, 1) sigChan := make(chan os.Signal, 1)