prompter_bruno 0.0.2 copy "prompter_bruno: ^0.0.2" to clipboard
prompter_bruno: ^0.0.2 copied to clipboard

Library to create CLI wizards

example/main.dart

import 'package:prompter_bruno/prompter_bruno.dart';

void main() {
  final List<Option> options = [
    Option('I want red', '#f00'),
    Option('I want blue', '#00f'),
    Option('I want yellow', '#ff0'),
  ];

  // No need to use keyword "new" since Dart 2.0
  final prompter = Prompter();

  String colorCode = prompter.askMultiple('Select a color', options);
  bool answer = prompter.askYesNo('Do you like this lib?');

  print(colorCode);
  print(answer);
}
0
likes
10
pub points
0%
popularity

Publisher

unverified uploader

Library to create CLI wizards

Homepage

License

unknown (LICENSE)

More

Packages that depend on prompter_bruno