prompter_tet 0.0.1 prompter_tet: ^0.0.1 copied to clipboard
Library to create CLI wizards
import 'package:prompter_tet/prompter_tet.dart';
void main() {
// var terminal = new Terminal();
final options = [
new Option('I want pink', '#FFCOCB'),
new Option('I want grey', '#C0C0C0')
];
final prompter = new Prompter();
String colorCode = prompter.askMultiple('Select Color', options);
bool answer = prompter.askBinary('Do you like this lib');
print(colorCode);
print(answer);
// print(prompter.askBinary('Do you love weed?'));
// final usersPick = prompter.ask('What is your favurite Color?', options);
// print(usersPick);
//terminal.printOptions(options);
// final prompter = new Prompter();
// prompter.ask('What color do you want?', options);
// terminal.printOptions(options);
// var response = terminal.collectInput();
// print(response);
// terminal.clearScreen();
// terminal.printPrompt('Hala Ralipane');
// var input = terminal.collectInput();
// print('You have just entered: $input');
//print('Halla Ralipane');
}