cli

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplyCommand

func NewApplyCommand(config ApplyConfig) *cobra.Command

NewApplyCommand creates a new cobra.Command for the apply command.

func NewCommand

func NewCommand(config Config) *cobra.Command

NewCommand creates the root cobra command for the 'uniflow' CLI.

func NewDeleteCommand

func NewDeleteCommand(config DeleteConfig) *cobra.Command

NewDeleteCommand creates a new cobra.Command for the delete command.

func NewGetCommand

func NewGetCommand(config GetConfig) *cobra.Command

NewGetCommand creates a new cobra.Command for the get command.

func NewStartCommand

func NewStartCommand(config StartConfig) *cobra.Command

NewStartCommand creates a new cobra.Command for the start command.

Types

type ApplyConfig

type ApplyConfig struct {
	SpecStore   spec.Store
	SecretStore secret.Store
	ChartStore  chart.Store
	FS          afero.Fs
}

ApplyConfig represents the configuration for the apply command.

type Config

type Config struct {
	Use   string
	Short string
	FS    afero.Fs
}

Config is a structure to hold the configuration for the CLI command.

type Debugger added in v0.10.0

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

Debugger manages the debugger UI using Bubble Tea.

func NewDebugger added in v0.10.0

func NewDebugger(agent *agent.Agent, options ...tea.ProgramOption) *Debugger

NewDebugger initializes a new Debugger with an input model and UI.

func (*Debugger) Kill added in v0.10.0

func (d *Debugger) Kill()

Kill stops the debugger UI immediately.

func (*Debugger) Run added in v0.10.0

func (d *Debugger) Run() error

Run starts the debugger UI and blocks until it exits.

func (*Debugger) Wait added in v0.10.0

func (d *Debugger) Wait()

Wait blocks until the debugger UI exits.

type DeleteConfig

type DeleteConfig struct {
	SpecStore   spec.Store
	SecretStore secret.Store
	ChartStore  chart.Store
	FS          afero.Fs
}

DeleteConfig represents the configuration for the delete command.

type GetConfig

type GetConfig struct {
	ChartStore  chart.Store
	SpecStore   spec.Store
	SecretStore secret.Store
}

GetConfig represents the configuration for the get command.

type StartConfig

type StartConfig struct {
	Scheme      *scheme.Scheme
	Hook        *hook.Hook
	SpecStore   spec.Store
	SecretStore secret.Store
	ChartStore  chart.Store
	FS          afero.Fs
}

StartConfig holds the configuration for the start command.

Jump to

Keyboard shortcuts

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