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

Library to create CLI wizards

example/main.dart

import 'package:prompter_al/prompter_al.dart';

void main() {
  final Prompter prompter = Prompter();

  final List<Option> options = [
    Option(label: 'help', value: 'Displays this help message.'),
    Option(label: 'version',value:  'Displays the version of the awesome tool.'),
    // Add more options as needed.
  ];

  final String prompt = 'What would you like to do?';

  String test = prompter.askMultipleChoice(prompt, options);
  bool test2 = prompter.askBinary('Do you want to proceed?');

  print('You chose: $test');
  print('Answer: $test2');

}
0
likes
140
points
9
downloads

Publisher

verified publisherandreas-lange.eu

Weekly Downloads

Library to create CLI wizards

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on prompter_al