prompter_al 0.0.1
prompter_al: ^0.0.1 copied to clipboard
Library to create CLI wizards
A flutter library to implement CLI wizards for multiple choice and binary questions.
Usage #
Import this library to your application and use import 'package:prompter_al/prompter_al.dart';
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 result = prompter.askMultipleChoice(prompt, options);
print('You chose: $result');