core_cli 1.0.0 copy "core_cli: ^1.0.0" to clipboard
core_cli: ^1.0.0 copied to clipboard

Simple core to create your CLI.

example/core_cli_example.dart

import '../lib/core_cli.dart';

void main(List<String> arguments) {
  final core = CoreCommands.initialize();

  core.configure([VersionCommand()]);

  core.execute(arguments);
}

class VersionCommand extends CommandBase {
  @override
  String get name => 'version';

  @override
  String get description => 'Get version';

  @override
  run() {
    print('0.0.0');
  }
}
0
likes
150
pub points
0%
popularity

Publisher

verified publishermateussiqueira.dev

Simple core to create your CLI.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

args

More

Packages that depend on core_cli