cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCore added in v0.5.0

func WithCore(core *core.Core) func(*CLI)

func WithIn added in v0.5.0

func WithIn(in io.Reader) func(*CLI)

func WithOut added in v0.5.0

func WithOut(out io.Writer) func(*CLI)

Types

type CLI added in v0.5.0

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

func New added in v0.5.0

func New(options ...func(*CLI)) *CLI

func (*CLI) ClearTerminal added in v0.5.0

func (c *CLI) ClearTerminal()

func (*CLI) Confirm added in v0.5.0

func (c *CLI) Confirm(prompt string) bool

func (*CLI) ErrorPrint added in v0.5.0

func (c *CLI) ErrorPrint(a ...any)

func (*CLI) ErrorPrintf added in v0.5.0

func (c *CLI) ErrorPrintf(format string, a ...any)

func (*CLI) Handle added in v0.5.0

func (c *CLI) Handle()

func (*CLI) InfoPrint added in v0.5.0

func (c *CLI) InfoPrint(a ...any)

func (*CLI) InfoPrintf added in v0.5.0

func (c *CLI) InfoPrintf(format string, a ...any)

func (*CLI) Input added in v0.5.0

func (c *CLI) Input(prompt string) string

func (*CLI) Loading added in v0.5.0

func (c *CLI) Loading(loadingText string, f func() common.Msg) common.Msg

func (*CLI) MsgPrint added in v0.5.0

func (c *CLI) MsgPrint(msg common.Msg)

func (*CLI) Question added in v0.5.0

func (c *CLI) Question(prompt string, options []string) ([]string, error, bool)

func (*CLI) RemoveProject added in v0.5.0

func (c *CLI) RemoveProject(name string)

func (*CLI) Selection added in v0.5.0

func (c *CLI) Selection(prompt string, options []string) (string, error, bool)

func (*CLI) SuccessPrint added in v0.5.0

func (c *CLI) SuccessPrint(a ...any)

func (*CLI) SuccessPrintf added in v0.5.0

func (c *CLI) SuccessPrintf(format string, a ...any)

func (*CLI) WarningPrint added in v0.5.0

func (c *CLI) WarningPrint(a ...any)

func (*CLI) WarningPrintf added in v0.5.0

func (c *CLI) WarningPrintf(format string, a ...any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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