prompter_lz 0.1.1 prompter_lz: ^0.1.1 copied to clipboard
Library to create CLI wizards. Provide the multi options questions for user to select. It also provide the binaray question which is let user to input Y or N which means yes or no.
import 'package:prompter_lz/prompter_lz.dart';
void main(List<String> args) {
final prompt = const Prompter();
final options = [
new Option('I want red', '#f00'),
new Option('I want blue', '#00f'),
];
final colorCode = prompt.askMultiple("What's your favorite color?", options);
final answer = prompt.askBinary("Do you love dart?");
print(colorCode);
print(answer);
}