terminal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLICommand

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

type CLICommandHandler

type CLICommandHandler func(cmd *cobra.Command, args []string, view View) error

type CobraCommandHandler

type CobraCommandHandler func(cmd *cobra.Command, args []string) error

func WrapCobraCommand

func WrapCobraCommand(block CLICommandHandler) CobraCommandHandler

type PulumiOutput

type PulumiOutput struct {
	Type            string
	CurrentProgress int
	Handler         PulumiOutputProgressHandler
}

func (*PulumiOutput) HandleDestroy

func (i *PulumiOutput) HandleDestroy(urn, status string)

func (*PulumiOutput) HandleUpdate

func (i *PulumiOutput) HandleUpdate(urn, status string)

func (*PulumiOutput) Write

func (i *PulumiOutput) Write(msg []byte) (int, error)

type PulumiOutputProgressHandler

type PulumiOutputProgressHandler func(progress int, msg, liveLink string)

type View

type View struct {
	OutputHandler PulumiOutput
	// contains filtered or unexported fields
}

func (View) Close

func (v View) Close() tea.Cmd

func (View) Init

func (v View) Init() tea.Cmd

func (View) ListForPulumiProgramCancelFn

func (v View) ListForPulumiProgramCancelFn() tea.Msg

func (View) ListenForPulumiProgressOutput

func (v View) ListenForPulumiProgressOutput() tea.Msg

func (View) ListenForReady

func (v View) ListenForReady() tea.Msg

func (View) NewPulumiOutputHandler

func (v View) NewPulumiOutputHandler(typ string) *PulumiOutput

func (View) Ready

func (v View) Ready()

func (View) SendPulumiProgressOutput

func (v View) SendPulumiProgressOutput(progress int, msg, liveLink string)

func (View) SetPulumiProgramCancelFn

func (v View) SetPulumiProgramCancelFn(fn cancelPulumiExec)

func (View) Update

func (v View) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (View) View

func (v View) View() string

Jump to

Keyboard shortcuts

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