Add instance command registry and composition

This commit is contained in:
2026-10-07 13:16:52 +00:00
parent f61d1ae7dd
commit f99be3257c
6 changed files with 564 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
# Developing CommandKit
CommandKit currently contains adopted repository policies, accepted architectural
decisions, implementation plans, and initial Go identity and outcome primitives.
Command dispatch is not implemented yet. The [README](../README.md) provides
project orientation; the
decisions, implementation plans, identity and outcome primitives, typed command
declarations, and an instance-owned registry. Command execution is not implemented
yet. The [README](../README.md) provides project orientation; the
[documentation policy](policy/documentation.md#canonical-ownership) assigns
canonical documentation owners.

View File

@@ -1,6 +1,6 @@
# Initial CommandKit implementation plan
Status: implementation underway; Stage 1 complete and Stages 2-14 pending.
Status: implementation underway; Stages 1-2 complete and Stages 3-14 pending.
Date: 2026-10-07.
@@ -169,7 +169,7 @@ Verified with `go test ./...`, `go mod verify`, and
## Stage 2: implement the instance registry and command declarations
**Status:** pending. **Prerequisite:** Stage 1.
**Status:** complete. **Prerequisite:** Stage 1.
Implement `App`, opaque `Command`, metadata, group composition, and registration
in root files such as `app.go`, `command.go`, and `registry.go`.
@@ -234,6 +234,9 @@ package or exported bridge methods.
registries; duplicate nested paths; runnable-parent composition; registration errors
leave the previous inventory intact. Execution remains Stage 5 work.
**Completion:** added typed command declarations, group composition, root help and
version reservations, and atomic per-App registration. Verified with `go test ./...`.
## Stage 3: implement typed bindings and input assembly
**Status:** pending. **Prerequisite:** Stage 2.