{"modulePath":"github.com/castingcode/tuicast","version":"v0.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package reference\n\nPackage reference implements the deterministic TUI used to exercise TUICast automation and terminal emulation.\n\n## Types\n\n```go\ntype Application struct {\n\t// contains filtered or unexported fields\n}\n```\nApplication is one isolated Bubble Tea reference application. Its pages, components, and deterministic scenario data are all compiled into the reference binary.\n\n```go\nfunc New(width, height int, credentials Credentials) (*Application, error)\n```\nNew creates a reference application with the requested terminal dimensions that accepts credentials on its login screen.\n\n```go\nfunc (a *Application) Init() tea.Cmd\n```\nInit implements tea.Model.\n\n```go\nfunc (a *Application) Run(input io.Reader, output io.Writer) error\n```\nRun serves one application session until the user exits or input ends.\n\n```go\nfunc (a *Application) RunWithResizes(input io.Reader, output io.Writer, resizes \u003c-chan Size) error\n```\nRunWithResizes serves one application session and applies terminal size changes received from a remote protocol.\n\n```go\nfunc (a *Application) SetVTTestRunner(runner VTTestRunner)\n```\nSetVTTestRunner replaces the external VTTEST launcher. Passing nil restores the default launcher.\n\n```go\nfunc (a *Application) Update(message tea.Msg) (tea.Model, tea.Cmd)\n```\nUpdate implements tea.Model.\n\n```go\nfunc (a *Application) View() tea.View\n```\nView implements tea.Model.\n\n```go\ntype CommandVTTestRunner struct{}\n```\nCommandVTTestRunner launches the system's vttest executable.\n\n```go\nfunc (CommandVTTestRunner) Run(input io.Reader, output io.Writer) error\n```\n\n```go\ntype Credentials struct {\n\tUsername string\n\tPassword string\n}\n```\nCredentials are the user ID and password accepted by the application's login screen.\n\n```go\nfunc (c Credentials) Validate() error\n```\nValidate reports whether the credentials can be entered on the login screen.\n\n```go\ntype FatalVTTestError struct {\n\tErr error\n}\n```\nFatalVTTestError reports a terminal-lifecycle failure after which the reference application cannot safely continue.\n\n```go\nfunc (e *FatalVTTestError) Error() string\n```\n\n```go\nfunc (e *FatalVTTestError) Unwrap() error\n```\n\n```go\ntype Size struct {\n\tWidth  int\n\tHeight int\n}\n```\nSize is a terminal window size supplied by a network session.\n\n```go\ntype VTTestRunner interface {\n\tRun(input io.Reader, output io.Writer) error\n}\n```\nVTTestRunner runs VTTEST on the same terminal streams as the reference app. The narrow contract permits later automation to record invocations/results.\n\n","path":"github.com/castingcode/tuicast/reference","name":"reference","synopsis":"Package reference implements the deterministic TUI used to exercise TUICast automation and terminal emulation.","isRedistributable":true}
