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

Library to create CLI wizards

example/main.dart

import 'package:prompter_iaa/prompter_iaa.dart';

void main() {

  final options = [
    new Option("I want red", "#f00"),
    new Option("I want blue", "#oof"),
  ];

  final prompter = new Prompter();

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

  print(colorCode);
  print(answer);
}

// Option represents 1 answer to given question
// Options class - class because code tied to each option
// Prompter class
// Terminal class ensures printing out to terminal
// automatically create a property for us
// print options will take a list of option objects
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_iaa