Documentation
¶
Index ¶
- Constants
- func CmdHandler(msg tea.Msg) tea.Cmd
- func ExecShell(ctx context.Context, cmdStr string, callback tea.ExecCallback) tea.Cmd
- func ReportError(err error) tea.Cmd
- func ReportInfo(info string) tea.Cmd
- func ReportWarn(warn string) tea.Cmd
- type ClearStatusMsg
- type Cursor
- type InfoMsg
- type InfoType
- type Model
Constants ¶
View Source
const ( InfoTypeInfo = uiutil.InfoTypeInfo InfoTypeSuccess = uiutil.InfoTypeSuccess InfoTypeWarn = uiutil.InfoTypeWarn InfoTypeError = uiutil.InfoTypeError InfoTypeUpdate = uiutil.InfoTypeUpdate )
Variables ¶
This section is empty.
Functions ¶
func ExecShell ¶
ExecShell parses a shell command string and executes it with exec.Command. Uses shell.Fields for proper handling of shell syntax like quotes and arguments while preserving TTY handling for terminal editors.
func ReportError ¶
func ReportInfo ¶
func ReportWarn ¶
Types ¶
type ClearStatusMsg ¶
type ClearStatusMsg = uiutil.ClearStatusMsg
Click to show internal directories.
Click to hide internal directories.