- Flesh out docs/index.md, docs/config.md, docs/features/mcp.md, docs/features/kanban.md with full content and aligned tables - Fix .markdownlint-cli2.mjs config (rules were outside 'config' key) - Add packages/mcp as a standalone MCP server package - Update all pubspec descriptions - Implement DewCommand + CommandRegistry in core - Implement KanbanCommand and McpCommand stubs with registerCommands() - Wire CLI entry point using CommandRunner + CommandRegistry - Add 'melos run dew' script for running the CLI from workspace root - Update tests across core, kanban, mcp packages Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
21 lines
540 B
Dart
21 lines
540 B
Dart
import 'package:args/command_runner.dart';
|
|
import 'package:dew_core/dew_core.dart';
|
|
import 'package:dew_kanban/dew_kanban.dart' as kanban;
|
|
import 'package:dew_mcp/dew_mcp.dart' as mcp;
|
|
|
|
Future<void> main(List<String> args) async {
|
|
final registry = CommandRegistry();
|
|
kanban.registerCommands(registry);
|
|
mcp.registerCommands(registry);
|
|
|
|
final runner = CommandRunner<void>(
|
|
'dew',
|
|
'A project management tool.',
|
|
);
|
|
|
|
for (final command in registry.commands) {
|
|
runner.addCommand(command);
|
|
}
|
|
|
|
await runner.run(args);
|
|
}
|