prompter_mh 0.0.4 copy "prompter_mh: ^0.0.4" to clipboard
prompter_mh: ^0.0.4 copied to clipboard

outdated

Library to create CLI wizards

example/main.dart

import 'package:prompter_mh/prompter_mh.dart';

void main() {
  // Instantiate a prompter instance
  Prompter prompter = Prompter();

  // Ask some questions
  var choice = prompter.ask(
    'What Color Do You Want?',
    'multiple',
    [
      Option(label: 'I want red', value: '#f44141'),
      Option(label: 'I want blue', value: '#4158f4'),
      Option(label: 'I want green', value: '#42f47d'),
      Option(label: 'I want yellow', value: '#f4f441'),
    ]
  );
  print(choice);

  choice = prompter.ask(
    'Do you like banana?',
    'binary',
    null,
  );
  print(choice);

  choice = prompter.ask(
    'What is your name?',
    'text',
    null,
  );
  print(choice);
  

  print(prompter.result());
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Library to create CLI wizards

Homepage

License

unknown (LICENSE)

More

Packages that depend on prompter_mh