wrash

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHistory

func NewHistory(base string, w io.Writer, entries []*Entry) prompt.History

Types

type Entry

type Entry struct {
	Base string
	Cmd  string
	// contains filtered or unexported fields
}

type Option

type Option func(*Session) error

func OptionEnvironment added in v0.4.2

func OptionEnvironment(env map[string]string) Option

func OptionFrozen

func OptionFrozen(freeze bool) Option

func OptionHistory

func OptionHistory(h prompt.History) Option

func OptionInteractive added in v0.4.0

func OptionInteractive(interactive bool) Option

func OptionStderr

func OptionStderr(w io.Writer) Option

func OptionStdin

func OptionStdin(r io.Reader) Option

func OptionStdout

func OptionStdout(w io.Writer) Option

type Session

type Session struct {
	Base []string
	// contains filtered or unexported fields
}

func NewSession

func NewSession(base []string, opts ...Option) (*Session, error)

func (*Session) Run

func (s *Session) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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