promto 0.0.1
promto: ^0.0.1 copied to clipboard
Library to create CLI wizerds
example/main.dart
//demo how to use our library
import 'package:promto/promto.dart';
void main(List<String> args) {
var options = [
new Option('I wanr red', '#f00'),
new Option('I want blue', '#00f')
];
final promptor = new Promptor();
String colorCode = promptor.askMultiple('select the colors', options);
bool answer = promptor.askBinary('Do you like this lib?');
print(colorCode);
print(answer);
}