question_wizard 0.0.1 question_wizard: ^0.0.1 copied to clipboard
this is a wizard of the command line
import 'package:question_wizard/question_wizard.dart';
void main() {
final List<Option> options = [
new Option(label: 'choose a blue color', value: '#0000FF'),
new Option(label: 'choose a green color', value: '#00FF00'),
];
Prompter prompter = Prompter();
String? colorCode = prompter.askMultiple('select a color:', options);
bool answer = prompter.askBinary('do you like this package 🥰');
if (answer) {
print("thank's a lot buddy 😊");
} else {
print("I know that's not a great package. 😔");
}
}