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.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
---
|
||||
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.
|
||||
Reference in New Issue
Block a user