cli

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *App

func (*App) Run

func (a *App) Run(ctx context.Context, args []string) int

type Config

type Config struct {
	Stdin       io.Reader
	Stdout      io.Writer
	Stderr      io.Writer
	Version     string
	IsTTY       bool
	HTTP        api.Doer
	BaseURL     string
	Env         func(string) string
	Now         func() time.Time
	Wait        func(context.Context, time.Duration) error
	Credentials func() (auth.Credentials, error)
}

Jump to

Keyboard shortcuts

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