disable

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package disable is the gtb-only `disable` command, the inverse of internal/cmd/enable. It turns off a capability of a generated tool and rewrites the generated wiring to match.

Simple on/off built-in features (ai, config, telemetry, init, update, mcp, docs, doctor, changelog) are a positional argument on `disable` itself — `gtb disable doctor` flips properties.features in .gtb/manifest.yaml and re-renders the root command. Capabilities with their own configuration are scoped subcommands: `gtb disable signing` turns off consumer-side release-signing verification (dropping the Signing field and signing.go, keeping internal/trustkeys and any *.asc keys).

See docs/development/specs/2026-06-16-enable-disable-features.md and docs/development/specs/2026-06-10-signing-generator-feature.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDisable

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

NewCmdDisable returns the top-level `gtb disable [feature]` command. A built-in feature passed positionally is toggled off; a first argument matching a scoped subcommand (signing) routes there instead; no argument opens the feature picker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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