shell

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoginCommand

func NewLoginCommand() *cobra.Command

func NewSetupCommand

func NewSetupCommand() *cobra.Command

func NewShellCommand

func NewShellCommand() *cobra.Command

Types

type Env

type Env struct {
	Sh *ishell.Shell
	// contains filtered or unexported fields
}

func NewEnv

func NewEnv() (e *Env)

func (*Env) AddCmd

func (e *Env) AddCmd(cmd *ishell.Cmd)

func (*Env) AddLogin

func (e *Env) AddLogin()

func (*Env) AddSetup

func (e *Env) AddSetup()

func (*Env) ConfirmRepl

func (e *Env) ConfirmRepl(c *ishell.Context, q string, or bool) bool

func (*Env) GetStringRepl

func (e *Env) GetStringRepl(c *ishell.Context, q, prompt string) string

func (*Env) GetStringReplFunc

func (e *Env) GetStringReplFunc(c *ishell.Context, q, prompt string, f func(string) bool) string

func (*Env) GetStringReplNonEmpty

func (e *Env) GetStringReplNonEmpty(c *ishell.Context, q, prompt string) string

func (*Env) PopPrompt

func (e *Env) PopPrompt()

func (*Env) Print

func (e *Env) Print(val ...interface{})

func (*Env) Printf

func (e *Env) Printf(format string, val ...interface{})

func (*Env) Println

func (e *Env) Println(val ...interface{})

forward prints

func (*Env) Process

func (e *Env) Process(args ...string)

func (*Env) PushPrompt

func (e *Env) PushPrompt(str string)

func (*Env) Run

func (e *Env) Run()

Jump to

Keyboard shortcuts

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