- DewInitHook interface and DewInitOptions added to packages/core/src/init.dart - InitCommand: creates .project/dew.yaml from default template, calls hooks --path/-p option (default '.'), --[no-]gitkeep flag (default true) - CommandRegistry gains initHooks list and registerInitHook() - KanbanInitHook: creates column dirs, archive/, attachments/ under .project/kanban/; adds .gitkeep to freshly-created dirs when enabled - KanbanInitHook registered in kanban.registerCommands() - CLI wires InitCommand(registry.initHooks) as a top-level command Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
17 lines
527 B
Dart
17 lines
527 B
Dart
library;
|
|
|
|
export 'src/dew_kanban_base.dart';
|
|
export 'src/kanban_config.dart';
|
|
export 'src/kanban_init_hook.dart';
|
|
export 'src/ticket.dart';
|
|
export 'src/ticket_store.dart';
|
|
|
|
import 'package:dew_core/dew_core.dart';
|
|
import 'package:dew_kanban/src/dew_kanban_base.dart';
|
|
import 'package:dew_kanban/src/kanban_init_hook.dart';
|
|
|
|
/// Registers all Kanban commands and init hooks into [registry].
|
|
void registerCommands(CommandRegistry registry) {
|
|
registry.register(KanbanCommand());
|
|
registry.registerInitHook(KanbanInitHook());
|
|
}
|