prompter_stantronic 0.2.0
Prompter Stantronic #
Library for assisting in building command line apps. #
Inspired by course by Stephen Grider
example/main.dart
import 'package:prompter_stantronic/prompter_stantronic.dart'; void main() { final prompter = Prompter(); final bool likeDart = prompter.askBinary("Do you like dart?"); print(likeDart ? "Yay!" : "Shame on you!"); final options = [ Option('I want red', '#f00'), Option('I want blue', '#00f'), ]; final colourCode = prompter.askMultiple("What colour do you want?", options); print(colourCode); }
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: prompter_stantronic: _stantronic/prompter_stantronic/prompter_stantronic.dart.
Run
dartfmt to format
lib/prompter_stantronic.