cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartLocalCMD

func StartLocalCMD(ctx context.Context, ch context.CancelCauseFunc)

Types

type Term

type Term struct {
	*term.Terminal
}

func NewTerm

func NewTerm(c io.ReadWriter, p string) *Term

func (*Term) Interaction

func (t *Term) Interaction(query string, isPassword ...bool) (answer string, err error)

func (*Term) InteractionDefault

func (t *Term) InteractionDefault(query string, defaultValue string, isPassword ...bool) (answer string, err error)

func (*Term) InteractionSelect

func (t *Term) InteractionSelect(query string, selectV []string, defaultValue string) (string, error)

func (*Term) WriteTerm

func (t *Term) WriteTerm(str string)

func (*Term) WriteTermColor

func (t *Term) WriteTermColor(str string, style string)

Jump to

Keyboard shortcuts

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