command

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoot

func NewRoot(deps Dependencies) *cobra.Command

NewRoot constructs the complete command tree without package globals.

func NormalizeError

func NormalizeError(err error) error

NormalizeError maps domain and HTTP errors to the public CLI exit contract.

Types

type Dependencies

type Dependencies struct {
	In              io.Reader
	Out             io.Writer
	ErrOut          io.Writer
	HTTPClient      *http.Client
	CredentialStore credentialFactory
	IsInputTerminal func() bool
	OpenURL         func(string) error
	Now             func() time.Time
	Getenv          func(string) string
}

Dependencies configures the process boundaries used by the command tree.

Jump to

Keyboard shortcuts

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