cmd

package
v0.0.0-...-2310d20 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cmd is the dispatcher for the gowheels CLI. It registers all subcommands and routes incoming arguments to the matching implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) error

Run parses args and dispatches to the matching command. args must not include the executable name (pass os.Args[1:]).

Every flag can be set via a GOWHEELS_-prefixed environment variable. The mapping rule is: prepend GOWHEELS_, uppercase, replace dashes with underscores. Commonly used:

GOWHEELS_PYPI_TOKEN    sets --pypi-token
GOWHEELS_GITHUB_TOKEN  sets --github-token
GOWHEELS_PYPI_URL      sets --pypi-url
GOWHEELS_DRY_RUN       sets --dry-run
GOWHEELS_DEBUG         sets --debug

Flags supplied on the command line always take precedence over env vars.

Types

This section is empty.

Directories

Path Synopsis
Package man implements the "man" CLI command.
Package man implements the "man" CLI command.
Package npm implements the "npm" subcommand.
Package npm implements the "npm" subcommand.
Package pypi implements the "pypi" subcommand.
Package pypi implements the "pypi" subcommand.
Package root defines the root configuration shared by all gowheels commands.
Package root defines the root configuration shared by all gowheels commands.
Package version implements the "version" CLI command.
Package version implements the "version" CLI command.

Jump to

Keyboard shortcuts

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