prompter_rrrr 0.0.1 prompter_rrrr: ^0.0.1 copied to clipboard
Library to create CLI wizards
import 'package:prompter_rrrr/prompter_rrrr.dart';
void main(){
//terminal.printPrompt('Hi thereeee');
//String input = terminal.collectInput();
//print('$input');
var options = [
new Option('Red', '#f00'),
new Option('Blue', '#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);
// var prompter = new Prompter();
// prompter.ask('What color?', options);
// terminal.printOption(options);
// var response = terminal.collectInput();
// print('$response');
}