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

Library to create CLI wizards

example/main.dart

import 'package:prompter_rk/prompter_rk.dart';

void main() {
  final options = [
    new Option("I want red", '#f00'),
    new Option("I want blue", '#00f')
  ];

  final prompter = new Prompter();

  final color = prompter.askMultiple('What color do you want?', options);
  bool likesDart = prompter.askBinary("Do you like dart?");

  print(
      "You prefer ${color.value} and ${likesDart ? "like" : "don't like"} dart");
}
0
likes
15
pub points
0%
popularity

Publisher

unverified uploader

Library to create CLI wizards

Homepage

License

unknown (LICENSE)

More

Packages that depend on prompter_rk