ask_terminal 0.0.1 copy "ask_terminal: ^0.0.1" to clipboard
ask_terminal: ^0.0.1 copied to clipboard

outdated

library to create CLI wizards

example/main.dart

import 'package:ask_terminal/ask_terminal.dart';

void main() {
  String colorCode = prompter.askMultiple('What color do you like?', [
    new Option('white', '#ffffff'),
    new Option('black', '#000000'),
    new Option('red', '#ff0000'),
    new Option('green', '#00ff00'),
    new Option('blue', '#0000ff'),
  ]); // returns option.value (ex: '#ffffff')


  bool learnDart = prompter.askBinary('Do you want to learn Dart for Web?'); // retruns bool (ex: true)

  print('liked color: $colorCode');
  print('I want to learn dart: $learnDart');
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

library to create CLI wizards

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on ask_terminal