ui

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInteractive

func IsInteractive() bool

func Run

func Run(parentCtx context.Context, runOpts RunOptions) error

func RunConfigProfile added in v0.5.6

func RunConfigProfile(parentCtx context.Context, containers []config.ContainerConfig, localStackHost string) error

RunConfigProfile runs the AWS profile setup flow with TUI output. It resolves the host from the AWS container config and runs the setup.

func RunLogin

func RunLogin(parentCtx context.Context, version string, platformClient api.PlatformAPI, authToken string, forceFileKeyring bool, webAppURL string, logger log.Logger) error

func RunLogout added in v0.2.0

func RunLogout(parentCtx context.Context, rt runtime.Runtime, platformClient api.PlatformAPI, authToken string, forceFileKeyring bool, containers []config.ContainerConfig, logger log.Logger) error

func RunLogs added in v0.5.2

func RunLogs(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, follow bool, verbose bool) error

func RunRestart added in v0.5.8

func RunRestart(parentCtx context.Context, rt runtime.Runtime, stopOpts container.StopOptions, startOpts container.StartOptions) error

func RunStatus added in v0.5.0

func RunStatus(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, localStackHost string, clients map[config.EmulatorType]emulator.Client) error

func RunStop added in v0.3.0

func RunStop(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, opts container.StopOptions) error

func RunUpdate added in v0.4.0

func RunUpdate(parentCtx context.Context, checkOnly bool, githubToken string) error

func RunVolumeClear added in v0.5.8

func RunVolumeClear(parentCtx context.Context, containers []config.ContainerConfig) error

Types

type App

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

func NewApp

func NewApp(version, emulatorName, configPath string, cancel func(), opts ...AppOption) App

func (App) Err

func (a App) Err() error

func (App) Init

func (a App) Init() tea.Cmd

func (App) Update

func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (App) View

func (a App) View() string

type AppOption added in v0.2.0

type AppOption func(*App)

type RunOptions added in v0.5.7

type RunOptions struct {
	Runtime                runtime.Runtime
	Version                string
	StartOptions           container.StartOptions
	NotifyOptions          update.NotifyOptions
	ConfigPath             string
	EmulatorLabel          string
	NeedsEmulatorSelection bool
}

RunOptions groups the parameters for Run. Bundling them keeps the call site readable as the UI entry point grows new concerns.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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