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

ctlcmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package ctlcmd constructs management CLI commands without import-time process side effects. Options, NewCommand and Run are the designated reusable entry surface; release protection follows docs/design/enterprise-extension-contract.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(opts Options) *cobra.Command

NewCommand creates fresh commands, flags and output state. It reads existing environment defaults but does not load dotenv files or exit the process.

func Run

func Run(opts Options) int

Run loads .env.local then .env, executes a fresh command, and returns an exit code. It uses os.Args/stdout/stderr; only main calls os.Exit.

Types

type Options

type Options struct{ Assembly distribution.Assembly }

Options supplies distribution metadata; main owns linked validation factories.

Jump to

Keyboard shortcuts

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