enable

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 11 Imported by: 0

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

View Source
var ErrInvalidBackend = errors.New("invalid --backend: not a registered signing backend")

ErrInvalidBackend is returned when --backend is not a registered signing backend.

View Source
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

func NewCmdEnable(p *props.Props) *setup.Command

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.

func NewCmdEnableSigning

func NewCmdEnableSigning(p *props.Props) *setup.Command

NewCmdEnableSigning returns the `gtb enable signing` subcommand. It flips the manifest signing block on and selectively regenerates only the signing-affected files.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL