Add typed command input bindings
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Initial CommandKit implementation plan
|
||||
|
||||
Status: implementation underway; Stages 1-2 complete and Stages 3-14 pending.
|
||||
Status: implementation underway; Stages 1-3 complete and Stages 4-14 pending.
|
||||
|
||||
Date: 2026-10-07.
|
||||
|
||||
@@ -239,7 +239,7 @@ version reservations, and atomic per-App registration. Verified with `go test ./
|
||||
|
||||
## Stage 3: implement typed bindings and input assembly
|
||||
|
||||
**Status:** pending. **Prerequisite:** Stage 2.
|
||||
**Status:** complete. **Prerequisite:** Stage 2.
|
||||
|
||||
Add root factories in `binding.go` using these signatures:
|
||||
|
||||
@@ -288,6 +288,10 @@ last-wins, repeated order and comma-containing strings, defaults, positional
|
||||
allocation, caller parse errors, and fresh collections/input state. Adapter-level
|
||||
integration of these cases belongs to Stage 4/5; avoid duplicating every case.
|
||||
|
||||
**Completion evidence:** binding behavior tests and `go test ./...` pass. Input
|
||||
factories remain deferred until callers build a prepared input; help-mode
|
||||
preparation parses supplied values without enforcing omitted required values.
|
||||
|
||||
## Stage 4: implement the internal Cobra adapter
|
||||
|
||||
**Status:** pending. **Prerequisite:** Stage 3.
|
||||
|
||||
Reference in New Issue
Block a user