Documentation
¶
Overview ¶
Package enable is the gtb-only `enable` command group. It hosts verbs that toggle a generated tool's capabilities and rewrite the existing generated wiring, as opposed to `generate`, which adds new user-facing surface (commands, flags, config fields).
The first member is `gtb enable signing`, which turns on consumer-side release-signing verification: it flips the manifest signing block, scaffolds the internal/trustkeys embed package and the generated signing.go enforcement defaults, and re-renders the root command to add the Signing: field. `gtb disable signing` is the inverse.
This package lives under internal/cmd/ because the commands belong to the framework author, not the framework's downstream consumers. See docs/development/specs/2026-06-10-signing-generator-feature.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidBackend = errors.New("invalid --backend: not a registered signing backend")
ErrInvalidBackend is returned when --backend is not a registered signing backend.
var ErrInvalidKeySource = errors.New("invalid --key-source: must be embedded, external, or both")
ErrInvalidKeySource is returned when --key-source is not one of the accepted values.
Functions ¶
func NewCmdEnable ¶
NewCmdEnable returns the top-level `gtb enable` command group with its subcommands attached. Mirrors the shape of internal/cmd/keys so the gtb root can compose it the same way.
Types ¶
This section is empty.