wrash

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHistoryFile

func GetHistoryFile() (string, error)

func NewHistory

func NewHistory(session *Session, 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 OptionDisablePrompt

func OptionDisablePrompt() Option

func OptionFrozen

func OptionFrozen(freeze bool) Option

func OptionHistory

func OptionHistory(entries []*Entry) 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
cmd

Jump to

Keyboard shortcuts

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