Files
fn_registry/functions/tui/run_model.md
T
egutierrez 62dcadceb8 feat: 29 funciones TUI — constructores, runners y helpers del dominio tui
16 constructores puros (NewList, NewSpinner, NewProgress, DefaultStyles...),
4 runners impuros (RunModel, RunFullscreen, RunWithMouseSupport, Confirm),
5 print helpers impuros (PrintSuccess/Error/Warning/Info/Muted) y
4 utilidades puras (Quit, ClearScreen, HideCursor, ShowCursor).
Stubs que documentan devfactory/tui para el registry.
2026-03-28 03:58:12 +01:00

36 lines
813 B
Markdown

---
name: run_model
kind: function
lang: go
domain: tui
version: "1.0.0"
purity: impure
signature: "func RunModel[T tea.Model](model T) core.Result[T]"
description: "Ejecuta un modelo Bubble Tea y devuelve el modelo final o error."
tags: [tui, runner, bubbletea, generic]
uses_functions: []
uses_types: [result_go_core]
returns: [result_go_core]
returns_optional: false
error_type: "error_go_core"
imports: [github.com/charmbracelet/bubbletea]
tested: false
tests: []
test_file_path: ""
file_path: "functions/tui/run_model.go"
---
## Ejemplo
```go
result := tui.RunModel(myModel)
if result.IsErr() {
log.Fatal(result.Error())
}
finalModel := result.Unwrap()
```
## Notas
Implementacion real en github.com/lucasdataproyects/devfactory/tui. Este stub existe para documentar la firma y mantener el registry.