simple_prompter 2.1.0 copy "simple_prompter: ^2.1.0" to clipboard
simple_prompter: ^2.1.0 copied to clipboard

outdated

An easy-to-use, automatic library for creating gorgeous CLI Wizards with Dart. Just type a few words and ... 'voila'!

example/main.dart

import 'package:simple_prompter/simple_prompter.dart';

void main() {
  final options = <Option>[
    new Option(label: 'I want Red', value: '#f00'),
    new Option(label: 'Gimme Blue', value: '#00f'),
    new Option(label: 'GREEN!', value: '#0f0'),
  ];

  final prompt = new Prompter();
  final String colorCode =
      prompt.askMultiple('What is your favorite color?', options);
  final bool answer = prompt.askBinary('Do You like Dr.Vals?');
  print(colorCode);
  print(answer);
}
3
likes
0
pub points
0%
popularity

Publisher

verified publisherteamvals.com

An easy-to-use, automatic library for creating gorgeous CLI Wizards with Dart. Just type a few words and ... 'voila'!

Homepage

License

unknown (LICENSE)

More

Packages that depend on simple_prompter