prompter_eo 0.0.1
prompter_eo: ^0.0.1 copied to clipboard
Library to create CLI wizard.
example/main.dart
import '../lib/prompter_eo.dart';
void main() {
final options = [
new Option('I want red', '#f00'),
new Option('I want blue', '#00f'),
new Option('I want green', '#0f0'),
];
final prompter = new Prompter();
String colorCode = prompter.askMultiple('Select a color', options);
bool? answer = prompter.askBinary('Do you like this lib?');
print(colorCode);
print(answer);
}