Documentation
¶
Overview ¶
Package commandstore ties framework metadata to the lifetime of a live Cobra command without keeping discarded command trees alive. It owns no declaration semantics; the caller still owns normalization, cloning and authority.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is a concurrent command-keyed metadata store. The zero value is ready to use and must not be copied after first use. Values must never reference the command, its tree, or closures capturing either: that would retain the key through the value and defeat weak ownership. Framework DTOs satisfy this. The command tree's owner must keep it alive while its metadata is in use.
Click to show internal directories.
Click to hide internal directories.