prompter_dk 0.0.1 prompter_dk: ^0.0.1 copied to clipboard
Library to create CLI wizards, which I created while learning about Dart.
import 'package:prompter_dk/prompter_dk.dart';
void main() {
final List<Option> options = [
new Option("This is red", "#f00"),
new Option("This is blue", "#00f")
];
final Prompter prompter = new Prompter();
String colorCode = prompter.askMultipleChoice("Select a color", options);
bool like = prompter.askBinary("You like?");
print("Color: $colorCode, like: $like");
}