app

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 32 Imported by: 0 modules, 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

This section is empty.

Functions

func Run

func Run(ctx context.Context, arguments []string, dependencies Dependencies) int

Types

type Dependencies

type Dependencies struct {
	Input               io.Reader
	Output              io.Writer
	ErrorOutput         io.Writer
	Stdin               *os.File
	Stdout              *os.File
	Environment         map[string]string
	HTTPClient          *http.Client
	Now                 func() time.Time
	Sleep               func(context.Context, time.Duration) error
	Version             string
	IsInteractive       func() bool
	IsOutputInteractive func() bool
	NewIdempotencyKey   func() (string, error)
	// OpenURL opens a safe verification or approval URL in the user's browser.
	// Device login opens directly; confirmation flows first ask the user.
	OpenURL func(string) error
	// ReadSecret reads one factor without echoing it. Workspace lock PINs and
	// recovery phrases have no other input path: no flag, environment variable
	// or piped stdin carries them, so a non-interactive run refuses instead of
	// falling back.
	ReadSecret func(prompt string) (string, error)
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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