confirm prompt
Usage:
bool exit = asker::confirm("yo! want to exit?");
std::cout << "wants to exit: " << exit << std::endl;
list select
Usage:
std::string selection;
std::string options[5] = {"option-1", "op", "option-3", "option-4"};
selection = asker::selectList("select options:", options);
std::cout << "user selected: " << selection << std::endl;
std::cout << std::endl;
checklist
Usage:
std::vector<std::string> checkSelection;
checkSelection = asker::checkList("select options:", options);
Usage:
std::string m;
m = asker::input("yo! enter name:");
Usage:
std::cout << "demo-4: required input prompt" << std::endl;
m = asker::input("yo! enter name:", true);
Usage:
std::cout << "demo-5: input prompt with validation" << std::endl;
m = asker::input("yo! enter name:", custom_validation, false);
Usage:
std::cout << "demo-6: masked input" << std::endl;
std::string pass = asker::maskedInput("Enter password:", true);
Usage:
std::cout << "demo-6: masked input (with different mask character)" << std::endl;
pass = asker::maskedInput("Enter password:", true, '#');