Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Registry = []*RegInfo{} GlobalButtons = []string{"/history"} )
Functions ¶
Types ¶
type Executor ¶
type Executor interface { // Available after New(). If return nil channel, should use seperated command output channel. Always return same. // Will automatically close when executor is closed Chan() <-chan string Open() error // if return non-nil error, the executor will have been closed. May take some time to return Name() string History() []string // return cmdline history, last is the latest cmdline Buttons() []string // executor level buttons Exec(ctx context.Context, cmdline string, isRaw bool) (output chan string) Cancel() // cancel currently running commands Clear() Close() // Chan() may close async after Close() return. }
Flow: New() -> Open() -> | Exec() / Cancel() / Clear() (support parallel) | -> Close().
Click to show internal directories.
Click to hide internal directories.