Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultStyles = Styles{ InputTextStyle: lipgloss.NewStyle(). Foreground(lipgloss.Color("#80ed99")), InputBarStyle: lipgloss.NewStyle(). BorderStyle(lipgloss.NormalBorder()). BorderForeground(lipgloss.Color("240")). BorderTop(true), OutputStyle: lipgloss.NewStyle(). BorderStyle(lipgloss.NormalBorder()). BorderForeground(lipgloss.Color("240")). BorderTop(true), ErrTextStyle: lipgloss.NewStyle(). Foreground(lipgloss.Color("#FF303E")), ExecTimeTextStyle: lipgloss.NewStyle(). Foreground(lipgloss.Color("#EBBD34")), }
Functions ¶
func Execute ¶
Execute executes the root command. It requires the input and output sources, as otherwise it'll try to read the STDIN and STDOUT streams. The "args" value contains a complete command expression split into a slice of strings, and the "out" represents io.Writer instance for writing the command execution result.
func NewHelpCmd ¶ added in v0.6.0
func NewRootCmd ¶ added in v0.6.0
func NewRootCmd(onStateChange func(), csc ...CreateSubCommand) *cobra.Command
Types ¶
type CreateSubCommand ¶ added in v1.0.0
CreateSubCommand defines a custom type for a function that creates a new command instance. The produced command will be assigned as a sub-command to the root command.
type History ¶ added in v0.6.0
type History struct {
// contains filtered or unexported fields
}
func NewHistory ¶ added in v0.6.0
func (*History) ResetCursor ¶ added in v0.6.0
func (h *History) ResetCursor()
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) SetPathContext ¶
Click to show internal directories.
Click to hide internal directories.