Skip to content
reusable cli tool in dart
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
img
lib
test
.gitignore
LICENSE
README.md
pubspec.lock
pubspec.yaml

README.md

Lentil

Your dart CLI wizard.

Dart Cli Example

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

  1. Clone repo
  2. Run pub get
  3. Execute main.dart in the example directory.
import 'package:lentil/lentil.dart';

void main() {
  final options = [
    new Option('I want red', '#f00'),
    new Option('I want blue', '#00f'),
  ];
  final prompter = new Prompter();

  final String colorCode =
      prompter.askMultiple("What color do you like", options);
  final bool isCakeLover = prompter.askBinary("Do you like cake?");

  print(colorCode);
  print(isCakeLover);
}

Built With

You can’t perform that action at this time.