prompter_al 0.0.1
prompter_al: ^0.0.1 copied to clipboard
Library to create CLI wizards
import 'package:prompter_al/prompter_al.dart';
void main() {
final Prompter prompter = Prompter();
final List<Option> options = [
Option(label: 'help', value: 'Displays this help message.'),
Option(label: 'version',value: 'Displays the version of the awesome tool.'),
// Add more options as needed.
];
final String prompt = 'What would you like to do?';
String test = prompter.askMultipleChoice(prompt, options);
bool test2 = prompter.askBinary('Do you want to proceed?');
print('You chose: $test');
print('Answer: $test2');
}