cmdrunner

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

Settings for the cmdrunner widget

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, moduleConfig *config.Config, globalConfig *config.Config) *Settings

NewSettingsFromYAML loads the cmdrunner portion of the WTF config

type Widget

type Widget struct {
	view.TextWidget
	// contains filtered or unexported fields
}

Widget contains the data for this widget

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, settings *Settings) *Widget

NewWidget creates a new instance of the widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Refresh signals the runCommandLoop to continue, or triggers a re-draw if the command is still running.

func (*Widget) String

func (widget *Widget) String() string

String returns the string representation of the widget

func (*Widget) Write added in v0.23.0

func (widget *Widget) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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