prompter_andreasgarvik 0.0.2
prompter_andreasgarvik: ^0.0.2 copied to clipboard

Library to create cli wizard

example/main.dart

import 'package:prompter_andreasgarvik/prompter_andreasgarvik.dart';

void main() {
  List<Option> options = [
    Option(label: 'I want red', value: '#f00'),
    Option(label: 'I want blue', value: '#00f')
  ];

  final Prompter p = Prompter();
  final String colorCode =
      p.askQuestion('What is your favorite color?', options);
  final bool answer = p.askYesNo('Do you like dart?');

  print(colorCode);
  print(answer);
}
0
likes
55
pub points
0%
popularity

Library to create cli wizard

Homepage

Documentation

API reference

License

unknown (LICENSE)

More

Packages that depend on prompter_andreasgarvik