cli_prompter 0.0.1 cli_prompter: ^0.0.1 copied to clipboard
Library to create a CLI wizards
import 'package:cli_prompter/cli_prompter.dart';
void main() {
final List<Option> options = [
Option(label: 'I want red', value: '#f00'),
Option(label: 'I want green', value: '#0f0'),
Option(label: 'I want blue', value: '#00f'),
];
final Prompter prompt = Prompter();
final input = prompt.askMultiple("What's your favourite colot", options);
final answer = prompt.askBinary('do you like dart');
print(input);
print(answer);
}