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

Library to create CLI wizards based on binary questions (yes/no), and mutliple choice questions with custom values

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
30
pub points
0%
popularity

Publisher

unverified uploader

Library to create CLI wizards based on binary questions (yes/no), and mutliple choice questions with custom values

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on ask_terminal