mono_cli 0.0.8 copy "mono_cli: ^0.0.8" to clipboard
mono_cli: ^0.0.8 copied to clipboard

CLI exports and implementations for the Mono CLI, used by the mono package.

example/main.dart

import 'package:mono_cli/mono_cli.dart';

void main() {
  final tokenizer = ArgsTokenizer();
  final tokens = tokenizer.tokenize('list all --check -t app');
  final parser = ArgsCliParser();
  final invocation = parser.parse(['list', '--check', 'all', '-t', 'app']);

  const yamlText = '''
include:
  - packages/*
tasks:
  build:
    run: [dart, compile]
''';
  const loader = YamlConfigLoader();
  final config = loader.load(yamlText);

  const logger = StdLogger();
  logger.log('Tokens: $tokens', scope: 'example');
  logger.log('Command: ${invocation.commandPath.join(' ')}', scope: 'example');
  logger.log('Config include: ${config.include}', scope: 'example');
}
0
likes
160
points
284
downloads

Publisher

verified publisherjozz.biz

Weekly Downloads

CLI exports and implementations for the Mono CLI, used by the mono package.

Homepage
Repository (GitHub)
View/report issues

Topics

#mono #monorepo #cli #tool

Documentation

API reference

License

MIT (license)

Dependencies

args, glob, mono_core, path, pool, yaml

More

Packages that depend on mono_cli