prompter_gk 0.0.1 prompter_gk: ^0.0.1 copied to clipboard
Library to create simple CLI wizards
import 'package:prompter_gk/prompter_gk.dart';
void main() {
final List<Option> options = [Option('Red', '#f00'), Option('Blue', '#00f')];
Prompter prompter = Prompter();
String colourCode = prompter.askMultiple('Select a colour', options);
print('Received colour : $colourCode');
bool answer = prompter.askBinary('Do you like this library');
print('Your answer : $answer');
}