parrot_cmd 0.0.0 copy "parrot_cmd: ^0.0.0" to clipboard
parrot_cmd: ^0.0.0 copied to clipboard

Parrot module for building modular command line applications.

example/main.dart

import 'package:parrot/parrot.dart';
import 'package:parrot_cmd/parrot_cmd.dart';

/// Create a command.
final sayCommand = createClosureCommand('say', 'Say something', (result, ref) {
  print('Hello, Parrot!');
});

// Create a root module.
final root = Module().useCommand(sayCommand);

void main(List<String> args) {
  // Create a Parrot application.
  final app = Parrot(root);

  // Run command-line application.
  app.run(args);
}
0
likes
150
pub points
0%
popularity

Publisher

verified publisherodroe.com

Parrot module for building modular command line applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

args, parrot

More

Packages that depend on parrot_cmd