parrot_cmd 0.0.0 parrot_cmd: ^0.0.0 copied to clipboard
Parrot module for building modular command line applications.
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);
}