Documentation
¶
Index ¶
- func CreateMenuList(registry []app.CommandDef, def *app.CommandDef) list.Model
- func NewFormModel(def *app.CommandDef) *formModel
- func NewLoadingResultsModel(title string) *resultsModel
- func NewResultsModel(title, content string) *resultsModel
- func Run(ctx context.Context, registry []app.CommandDef, startPath string) error
- type CommandExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMenuList ¶
func CreateMenuList(registry []app.CommandDef, def *app.CommandDef) list.Model
CreateMenuList creates a list model for a parent command definition
func NewFormModel ¶
func NewFormModel(def *app.CommandDef) *formModel
NewFormModel creates a new form model from a command definition
func NewLoadingResultsModel ¶
func NewLoadingResultsModel(title string) *resultsModel
NewLoadingResultsModel creates a new results display model in loading state
func NewResultsModel ¶
func NewResultsModel(title, content string) *resultsModel
NewResultsModel creates a new results display model
Types ¶
type CommandExecutor ¶
type CommandExecutor struct {
// contains filtered or unexported fields
}
CommandExecutor executes CLI commands from TUI
func NewCommandExecutor ¶
func NewCommandExecutor(ctx context.Context) *CommandExecutor
NewCommandExecutor creates a new command executor
func (*CommandExecutor) ExecuteCommand ¶
func (e *CommandExecutor) ExecuteCommand(def *app.CommandDef, flags map[string]any) (output string, data any, err error)
ExecuteCommand executes an app handler
Click to show internal directories.
Click to hide internal directories.