perun

package
v0.0.0-...-ffd21e7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearCommand

type ClearCommand struct {
}

func (*ClearCommand) Handle

func (r *ClearCommand) Handle(args string, perun *Perun) error

type Command

type Command interface {
	Handle(args string, perun *Perun) error
}

type ExternalApp

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

func NewExternalAppFromConfig

func NewExternalAppFromConfig(appConf config.AppConfig, consoleWriter io.Writer) (*ExternalApp, error)

func (*ExternalApp) SetConsoleOutput

func (a *ExternalApp) SetConsoleOutput(w io.Writer)

func (*ExternalApp) Start

func (a *ExternalApp) Start() error

func (*ExternalApp) Stop

func (a *ExternalApp) Stop() error

type FocusCommand

type FocusCommand struct {
}

func (*FocusCommand) Handle

func (r *FocusCommand) Handle(args string, perun *Perun) error

type Perun

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

func NewWithApps

func NewWithApps(apps []config.AppConfig) (*Perun, error)

func (*Perun) AppByName

func (p *Perun) AppByName(name string) *ExternalApp

func (*Perun) GetAllApps

func (p *Perun) GetAllApps() []*ExternalApp

func (*Perun) Run

func (p *Perun) Run() error

func (*Perun) Stop

func (p *Perun) Stop() error

type RedrawBarrier

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

func NewRedrawBarrier

func NewRedrawBarrier(barrierTTL time.Duration, drawFunc func()) RedrawBarrier

func (*RedrawBarrier) TryDraw

func (b *RedrawBarrier) TryDraw() bool

type RestartCommand

type RestartCommand struct {
}

func (*RestartCommand) Handle

func (r *RestartCommand) Handle(args string, perun *Perun) error

type StopCommand

type StopCommand struct {
}

func (*StopCommand) Handle

func (r *StopCommand) Handle(args string, perun *Perun) error

Jump to

Keyboard shortcuts

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