cmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MPL-2.0 Imports: 45 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Goos = runtime.GOOS

Goos returns the operating system, can be mocked for testing

Functions

func Execute

func Execute() error

Execute is the main entry point for the Windsor CLI application. It executes the root command with the provided context or a new background context. Sets the root command's context before execution so cmd.Root().Context() is correct when RunE runs (Cobra does not always propagate context to root on subsequent runs). It restores the terminal, then renders a returned error once, unless the failing command already reported it.

func RootCmd added in v0.9.0

func RootCmd() *cobra.Command

RootCmd exposes the assembled cobra command tree for tooling that needs to introspect commands without executing them — currently the reference-doc generator under internal/gendocs. Importing the cmd package triggers the init() blocks that register every subcommand, so this accessor reflects the full tree by the time any caller invokes it.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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