app

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRenderedAPIError

func IsRenderedAPIError(err error) bool

Types

type App

type App struct {
	In       io.Reader
	Out, Err io.Writer
	// MCPExecutable overrides the adjacent pinned helper for embedding/tests.
	MCPExecutable   string
	Version, Commit string
	BuildDate       string

	// OpenBrowser overrides the browser launcher for embedding/headless flows.
	// A nil value uses the operating-system launcher when a browser can open.
	OpenBrowser func(context.Context, string) error
	// Sleep overrides the wait between device login polls in tests.
	Sleep func(context.Context, time.Duration) error
	// contains filtered or unexported fields
}

func New

func New(out, err io.Writer) *App

func (*App) Run

func (a *App) Run(argv []string) error

func (*App) RunContext

func (a *App) RunContext(runCtx context.Context, argv []string) error

func (*App) WriteReference

func (a *App) WriteReference(ctx context.Context, dir string) error

WriteReference writes the CLI reference of the docs site into dir: one MDX page per command group, from the same command trees and help the CLI shows, so the pages cannot drift from the binary. Files in dir that it did not write are removed.

Jump to

Keyboard shortcuts

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