runtime

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppContextKey  contextKey = "arcane_app_context"
	OutputModeText OutputMode = "text"
	OutputModeJSON OutputMode = "json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

type AppContext struct {
	Options

	AllConfirmed bool
	// contains filtered or unexported fields
}

func From

func From(ctx context.Context) (*AppContext, bool)

func New

func New(ctx context.Context, opts Options) (*AppContext, error)

func (*AppContext) AllEnvironments

func (a *AppContext) AllEnvironments() bool

func (*AppContext) Client

func (a *AppContext) Client() (*client.Client, error)

func (*AppContext) Config

func (a *AppContext) Config() *clitypes.Config

func (*AppContext) EnvID

func (a *AppContext) EnvID() string

func (*AppContext) Environments

func (a *AppContext) Environments(ctx context.Context) ([]types.Environment, error)

func (*AppContext) IsJSON

func (a *AppContext) IsJSON() bool

func (*AppContext) SelectEnvironment

func (a *AppContext) SelectEnvironment(id string)

func (*AppContext) UnauthClient

func (a *AppContext) UnauthClient() (*client.Client, error)

type Options

type Options struct {
	EnvOverride    string
	OutputMode     OutputMode
	AssumeYes      bool
	NoColor        bool
	RequestTimeout time.Duration
}

type OutputMode

type OutputMode string

Jump to

Keyboard shortcuts

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