shell

package
v1.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 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 CommandAction

type CommandAction string
const (
	CommandActionExecute CommandAction = "execute"
	CommandActionSkip    CommandAction = "exit"
)

type Shell

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

func New

func New(completion *completion.Completion, shellInterpreter string) *Shell

func (*Shell) Execute

func (s *Shell) Execute(script string) error

func (*Shell) Suggest

func (s *Shell) Suggest(prompt string) (*ShellResponse, error)

type ShellResponse

type ShellResponse struct {
	CommandAction CommandAction
	Command       string
}

Jump to

Keyboard shortcuts

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