prompter_pmg0310 0.0.1 prompter_pmg0310: ^0.0.1 copied to clipboard
Library to create CLI wizards
import 'package:prompter_pmg0310/prompter_pmg0310.dart';
void main() {
final options = [
new Option(label: 'I want red', value: '#f00'),
new Option(label: 'I want blue', value: '#00f'),
];
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);
}