Documentation ¶
Index ¶
- func NewLoginCommand() *cobra.Command
- func NewSetupCommand() *cobra.Command
- func NewShellCommand() *cobra.Command
- type Env
- func (e *Env) AddCmd(cmd *ishell.Cmd)
- func (e *Env) AddLogin()
- func (e *Env) AddSetup()
- func (e *Env) ConfirmRepl(c *ishell.Context, q string, or bool) bool
- func (e *Env) GetStringRepl(c *ishell.Context, q, prompt string) string
- func (e *Env) GetStringReplFunc(c *ishell.Context, q, prompt string, f func(string) bool) string
- func (e *Env) GetStringReplNonEmpty(c *ishell.Context, q, prompt string) string
- func (e *Env) PopPrompt()
- func (e *Env) Print(val ...interface{})
- func (e *Env) Printf(format string, val ...interface{})
- func (e *Env) Println(val ...interface{})
- func (e *Env) Process(args ...string)
- func (e *Env) PushPrompt(str string)
- func (e *Env) Run()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoginCommand ¶
func NewSetupCommand ¶
func NewShellCommand ¶
Types ¶
type Env ¶
type Env struct { Sh *ishell.Shell // contains filtered or unexported fields }
func (*Env) GetStringRepl ¶
func (*Env) GetStringReplFunc ¶
func (*Env) GetStringReplNonEmpty ¶
func (*Env) PushPrompt ¶
Click to show internal directories.
Click to hide internal directories.