Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: AGPL-3.0, AGPL-3.0-only Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command.

func RunConfigBadges

func RunConfigBadges(appCfg *config.Config, rootDir string, names []string, status string) error

RunConfigBadges generates SVG badges from narrator config items. Extracted for reuse by both Cobra command and CI runners.

func RunDockerReadme

func RunDockerReadme(ctx context.Context, appCfg *config.Config, rootDir string, dryRun bool) error

RunDockerReadme syncs README content to container registries. Extracted for reuse by both Cobra command and CI runners.

func RunDocsGenerate

func RunDocsGenerate(rootCommand *cobra.Command, outputDir string) error

RunDocsGenerate generates reference documentation from the Cobra command tree. Extracted for reuse by both Cobra command and CI runners. Requires rootCmd for CLI reference generation — pass it explicitly.

func RunNarrator

func RunNarrator(appCfg *config.Config, rootDir string, dryRun bool, isVerbose bool) error

RunNarrator runs narrator items from config. Extracted for reuse by both Cobra command and CI runners.

Types

type ExitError

type ExitError struct {
	Code int
	Err  error
}

ExitError wraps an error with a process exit code.

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) Unwrap

func (e *ExitError) Unwrap() error

Jump to

Keyboard shortcuts

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