{"modulePath":"github.com/newstack-cloud/deploy-cli-sdk","version":"v0.10.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package listui\n\n## Types\n\n```go\ntype MainModel struct {\n\n\t// Selected instance (set when user presses enter)\n\tSelectedInstanceID   string\n\tSelectedInstanceName string\n\n\tError error\n\t// contains filtered or unexported fields\n}\n```\nMainModel is the top-level model for the list command TUI.\n\n```go\nfunc NewListApp(\n\tdeployEngine engine.DeployEngine,\n\tlogger *zap.Logger,\n\tsearch string,\n\tbluelinkStyles *stylespkg.Styles,\n\theadless bool,\n\theadlessWriter io.Writer,\n\tjsonMode bool,\n) (*MainModel, error)\n```\nNewListApp creates a new list application with the given configuration.\n\n```go\nfunc (m MainModel) Init() tea.Cmd\n```\nInit initializes the main model.\n\n```go\nfunc (m MainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)\n```\nUpdate handles messages for the main model.\n\n```go\nfunc (m MainModel) View() string\n```\nView renders the main model.\n\n```go\ntype PageLoadErrorMsg struct {\n\tErr error\n}\n```\nPageLoadErrorMsg is sent when loading a page fails.\n\n```go\ntype PageLoadedMsg struct {\n\tInstances  []state.InstanceSummary\n\tTotalCount int\n\tPage       int\n}\n```\nPageLoadedMsg is sent when a page of instances has been loaded.\n\n","path":"github.com/newstack-cloud/deploy-cli-sdk/tui/listui","name":"listui","synopsis":"","isRedistributable":true}
