prompter_elhe 0.0.3 prompter_elhe: ^0.0.3 copied to clipboard
Library to create CLI wizards
import 'package:prompter_elhe/prompter_elhe.dart';
void main(List<String> args) {
List<Option> options = [
Option(label: "I want red", value: "#f00"),
Option(label: "I want blue", value: "#00f")
];
var prompter = Prompter();
String colorCode = prompter.askMultiple(
prompt: "Select a color",
options: options,
);
bool answer = prompter.askBinary(prompt: "Do you like this lib?");
print(colorCode);
print(answer);
}