prompter_np 0.0.4 prompter_np: ^0.0.4 copied to clipboard
Library for creating CLI wizards
import 'package:prompter_np/prompter_np.dart';
void main() {
final List<Option> options = [
Option(label: "A", value: 'A'),
Option(label: "B", value: 'B')
];
Prompter prompter = Prompter();
var multiChoice = prompter.askMultiple("Select any of the following", options);
var binaryChoice = prompter.askBinary("Are you an experienced dart developer?");
print("\nResults");
print(multiChoice);
print(binaryChoice);
}