shell

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShellCmd = &cobra.Command{
	Use:   "shell",
	Short: "Interactive shell",
	Long: fmt.Sprintf(`%s

The Provide shell allows you to attach to a specific version of the Provide stack.

Run with the --help flag to see available options`, common.ASCIIBanner),
	Run: shell,
}

Functions

func MarshalPromptIO

func MarshalPromptIO(sel *promptui.Select)

MarshalPromptIO marshals IO from promptui text or select prompt

Types

type NoopCloser

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

func (*NoopCloser) Close

func (nc *NoopCloser) Close() error

func (*NoopCloser) Write

func (nc *NoopCloser) Write(buf []byte) (int, error)

type REPL

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

func NewREPL

func NewREPL(fn func(*sync.WaitGroup) error) (*REPL, error)

func NewREPLWithCmd

func NewREPLWithCmd(cmd exec.Cmd, buf *bytes.Buffer) (*REPL, error)

Jump to

Keyboard shortcuts

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