- 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>
11 lines
544 B
Markdown
11 lines
544 B
Markdown
---
|
|
id: DEW-0010
|
|
title: dew init command with module init hooks
|
|
type: story
|
|
created: 2026-04-23T23:37:36.834286Z
|
|
links:
|
|
- id: DEW-0002
|
|
type: child_of
|
|
---
|
|
|
|
Add `dew init [path]` command. Core defines DewInitHook interface with onInit(root, options). Options include bool gitkeep (default true). Each package registers a hook. Kanban hook creates: column dirs (from config), archive/, attachments/ under .project/kanban/. --[no-]gitkeep flag adds .gitkeep to empty dirs. Must run after storage refactor so dir structure matches new layout.
|