Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCmdNoHandler = errors.New("command has no handler")
)
View Source
var StyleError = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#FF4672", Dark: "#FF4672"})
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
func (*Console) RegisterCommands ¶
type Opts ¶
type Opts func(*Console)
func WithContext ¶
func WithDynamicPrompt ¶ added in v0.2.0
func WithExitCmd ¶
func WithHandleCtrlC ¶
func WithHistoryFile ¶
func WithPrompt ¶ added in v0.2.0
func WithWelcomeMsg ¶
Click to show internal directories.
Click to hide internal directories.