shell

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const USAGE = `` /* 484-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(executorConfig *config.ConfigExecutorStruct, extraOption string) (executor.Executor, error)

Types

type Shell

type Shell struct {
	TimeoutSecond int
	// contains filtered or unexported fields
}

func (*Shell) Buttons

func (s *Shell) Buttons() (buttons []string)

Buttons implements executor.Executor.

func (*Shell) Cancel

func (s *Shell) Cancel()

func (*Shell) Chan

func (s *Shell) Chan() <-chan string

Chan implements executor.Executor.

func (*Shell) Clear

func (s *Shell) Clear()

Clear implements executor.Executor.

func (*Shell) Close

func (s *Shell) Close()

func (*Shell) Exec

func (s *Shell) Exec(ctx context.Context, cmdline string, isRaw bool) (output chan string)

func (*Shell) History

func (s *Shell) History() []string

History implements executor.Executor.

func (*Shell) Name

func (s *Shell) Name() string

func (*Shell) Open

func (s *Shell) Open() error

Open implements executor.Executor.

Jump to

Keyboard shortcuts

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