runner

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearEvent

type ClearEvent struct{}

type CloseViewerEvent

type CloseViewerEvent bool

type CmdFinishedEvent

type CmdFinishedEvent struct {
	CmdViewer *CmdViewer
	ExitCode  int
	Title     string
}

type CmdRunner

type CmdRunner struct {
	CurrViewer int
	// contains filtered or unexported fields
}

func NewCmdRunner

func NewCmdRunner(w *app.Window, th *viewer.Theme, prompt bool, help string, command string, builtins map[string]builder.BuiltinCommandFunc) *CmdRunner

func (*CmdRunner) Events

func (c *CmdRunner) Events() []interface{}

func (*CmdRunner) Focus

func (c *CmdRunner) Focus()

func (*CmdRunner) Layout

func (c *CmdRunner) Layout(gtx layout.Context) layout.Dimensions

func (*CmdRunner) PrepareCommand

func (c *CmdRunner) PrepareCommand(cmd string)

func (*CmdRunner) SetText added in v0.2.0

func (c *CmdRunner) SetText(cmd string)

type CmdStartedEvent

type CmdStartedEvent struct {
	CmdViewer *CmdViewer
}

type CmdViewer

type CmdViewer struct {
	InitCmd string
	// contains filtered or unexported fields
}

func NewCmdViewer

func NewCmdViewer(th *viewer.Theme, cmd string, cl []*builder.MacroCommand, runner *CmdRunner) *CmdViewer

func (*CmdViewer) Events

func (cv *CmdViewer) Events() []interface{}

func (*CmdViewer) Kill

func (cv *CmdViewer) Kill()

func (*CmdViewer) Layout

func (cv *CmdViewer) Layout(gtx layout.Context) layout.Dimensions

type ExitEvent

type ExitEvent struct {
	ExitCode int
}

Jump to

Keyboard shortcuts

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