Documentation
¶
Index ¶
- func WithCore(core *core.Core) func(*CLI)
- func WithIn(in io.Reader) func(*CLI)
- func WithOut(out io.Writer) func(*CLI)
- type CLI
- func (c *CLI) ClearTerminal()
- func (c *CLI) Confirm(prompt string) bool
- func (c *CLI) ErrorPrint(a ...any)
- func (c *CLI) ErrorPrintf(format string, a ...any)
- func (c *CLI) Handle()
- func (c *CLI) InfoPrint(a ...any)
- func (c *CLI) InfoPrintf(format string, a ...any)
- func (c *CLI) Input(prompt string, defaultValue string) string
- func (c *CLI) Loading(loadingText string, f func() common.Msg) common.Msg
- func (c *CLI) MsgPrint(msg common.Msg)
- func (c *CLI) Question(prompt string, options []string, defaultSelected []bool) ([]string, error, bool)
- func (c *CLI) Selection(prompt string, options []string) (string, error, bool)
- func (c *CLI) SuccessPrint(a ...any)
- func (c *CLI) SuccessPrintf(format string, a ...any)
- func (c *CLI) WarningPrint(a ...any)
- func (c *CLI) WarningPrintf(format string, a ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLI ¶ added in v0.5.0
type CLI struct {
// contains filtered or unexported fields
}
func (*CLI) ClearTerminal ¶ added in v0.5.0
func (c *CLI) ClearTerminal()
func (*CLI) ErrorPrint ¶ added in v0.5.0
func (*CLI) ErrorPrintf ¶ added in v0.5.0
func (*CLI) InfoPrintf ¶ added in v0.5.0
func (*CLI) SuccessPrint ¶ added in v0.5.0
func (*CLI) SuccessPrintf ¶ added in v0.5.0
func (*CLI) WarningPrint ¶ added in v0.5.0
func (*CLI) WarningPrintf ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.