commands

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 60 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

Overview

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Package commands exposes reusable Cobra command constructors for avr.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Command prose and semantic parameter descriptions. Maintain these with the command implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description(c *cobra.Command) docgen.Description

Description supplies Go-owned prose and semantic metadata lazily. Command membership, executable flags, defaults and aliases come from the live tree.

func Documentation

func Documentation(root *cobra.Command) (*docgen.Tree, error)

Documentation renders the public tree, including composed live extensions.

func Execute

func Execute(ctx context.Context, args []string, deps Dependencies) (code int)

Execute is the standalone entry boundary; embedded consumers can execute their own root and inspect ExitError without a library ever calling os.Exit.

func ExecuteRoot

func ExecuteRoot(ctx context.Context, root *cobra.Command, args []string, stderr io.Writer, dependencies ...Dependencies) (code int)

ExecuteRoot applies the shared exit-code contract to a composed command tree. Optional dependencies provide environment lookup for shell completion.

func IgnoreBrokenPipe

func IgnoreBrokenPipe()

IgnoreBrokenPipe lets command handlers handle EPIPE without passing an ignored SIGPIPE disposition to child programs. Call only from main.

func InterruptContext

func InterruptContext(parent context.Context) (context.Context, context.CancelFunc)

InterruptContext is for executable entrypoints. Commands normally cancel on Ctrl-C; an attached interactive SSH child owns terminal interrupts until it exits. External cancellation of parent always remains effective.

func NewAPI added in v0.9.0

func NewAPI(deps Dependencies) *cobra.Command

func NewArtifact

func NewArtifact(deps Dependencies) *cobra.Command

NewArtifact constructs artifact inspection and verified file transfer commands.

func NewAudit

func NewAudit(deps Dependencies) *cobra.Command

NewAudit exposes organization write history.

func NewAuth

func NewAuth(deps Dependencies) *cobra.Command

func NewBilling

func NewBilling(deps Dependencies) *cobra.Command

NewBilling exposes billing records for the selected organization.

func NewCache

func NewCache(deps Dependencies) *cobra.Command

NewCache exposes shared build-cache inspection and confirmed deletion.

func NewConfig

func NewConfig(deps Dependencies) *cobra.Command

NewConfig exposes the shared host-scoped CLI configuration.

func NewDeviceLogin

func NewDeviceLogin(deps Dependencies) *cobra.Command

NewDeviceLogin signs in without opening a local browser or callback listener.

func NewFeedback added in v0.8.0

func NewFeedback(deps Dependencies) *cobra.Command

NewFeedback submits authenticated feedback and reads its delivery status.

func NewFirewall

func NewFirewall(deps Dependencies) *cobra.Command

NewFirewall preserves the public CLI's explicit repository scope and boolean JSON flags.

func NewGroup added in v0.9.0

func NewGroup(deps Dependencies) *cobra.Command

NewGroup exposes the organization's groups to a signed-in member, so that the --group options of other commands can be given a group's path.

func NewHealth

func NewHealth(deps Dependencies) *cobra.Command

NewHealth inspects platform health without requiring a login.

func NewInternal

func NewInternal(deps Dependencies) *cobra.Command

func NewJob

func NewJob(deps Dependencies) *cobra.Command

NewJob returns independently owned job inspection and connection commands.

func NewLog

func NewLog(deps Dependencies) *cobra.Command

NewLog returns repository-scoped full-text log search.

func NewLogin

func NewLogin(deps Dependencies) *cobra.Command

func NewLogout

func NewLogout(deps Dependencies) *cobra.Command

func NewOrg

func NewOrg(deps Dependencies) *cobra.Command

NewOrg returns an independently owned public organization command group.

func NewPR

func NewPR(deps Dependencies) *cobra.Command

NewPR returns shared pull-request inspection commands.

func NewRepo

func NewRepo(deps Dependencies) *cobra.Command

NewRepo returns public repository inspection commands.

func NewRoot

func NewRoot(deps Dependencies) *cobra.Command

func NewRun

func NewRun(deps Dependencies) *cobra.Command

NewRun returns shared CI-run inspection commands.

func NewSBOM

func NewSBOM(deps Dependencies) *cobra.Command

NewSBOM returns recorded repository SBOM inspection commands.

func NewSecret added in v0.9.0

func NewSecret(deps Dependencies) *cobra.Command

NewSecret constructs secret management commands. Secret values are write-only.

func NewServiceToken added in v0.9.0

func NewServiceToken(deps Dependencies) *cobra.Command

NewServiceToken exposes the management of an organization's group-owned service tokens to a signed-in organization admin.

func NewSettings

func NewSettings(deps Dependencies) *cobra.Command

NewSettings constructs settings commands with shared scope selection and output.

func NewSkill added in v0.9.0

func NewSkill(deps Dependencies) *cobra.Command

NewSkill prints the agent guide and installs the skill that points at it.

func NewStatus

func NewStatus(deps Dependencies) *cobra.Command

NewStatus returns the shared organization/repository status dashboard.

func NewTests

func NewTests(deps Dependencies) *cobra.Command

NewTests reads the retained results of a job, including repeated occurrences.

func NewToken

func NewToken(deps Dependencies) *cobra.Command

NewToken exposes scoped token creation, inspection and revocation.

func NewVM

func NewVM(deps Dependencies) *cobra.Command

func NewVariable added in v0.9.0

func NewVariable(deps Dependencies) *cobra.Command

NewVariable constructs readable configuration-variable management commands.

func NewWorkflow

func NewWorkflow(deps Dependencies) *cobra.Command

NewWorkflow returns shared workflow discovery and execution commands.

Types

type Dependencies

type Dependencies struct {
	// UpdateNotices supports injected notices. StartUpdateCheck is opt-in for the
	// public executable; composed commands do not inherit a release feed.
	StartUpdateCheck func(context.Context) <-chan string

	UpdateNotices   <-chan string
	Verbose         func() bool
	ColorEnabled    func() bool
	RunSSH          func(context.Context, []string) (int, error)
	Store           *config.Store
	LoadConfig      func() (config.Config, error)
	HTTP            *http.Client
	In              io.Reader
	Out             io.Writer
	Err             io.Writer
	Getenv          func(string) string
	LookupEnv       func(string) (string, bool)
	OpenBrowser     func(context.Context, string) error
	Listen          func(context.Context, string, string) (net.Listener, error)
	Hostname        func() (string, error)
	Now             func() time.Time
	Wait            func(context.Context, time.Duration) error
	IsTerminal      func() bool
	IsInputTerminal func() bool
	IsErrorTerminal func() bool
	LoginTimeout    time.Duration
	GitRemote       func(context.Context) (string, error)
	Version         string
}

Dependencies are explicit so callers can reuse commands without package globals.

type ExitError

type ExitError struct {
	Code    int
	Message string
}

func (*ExitError) Error

func (e *ExitError) Error() string

Source Files

Jump to

Keyboard shortcuts

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