{"modulePath":"github.com/stainless-api/stainless-api-cli","version":"v0.1.0-alpha.89","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dev\n\n## Variables\n\n```go\nvar ErrUserCancelled = errors.New(\"user cancelled\")\n```\n\n## Functions\n\n```go\nfunc ViewBuildRange(m *Model, startView, endView string) string\n```\nViewBuildRange renders the build view from startView to endView (inclusive) Returns empty string if views are not found\n\n## Types\n\n```go\ntype ErrorMsg error\n```\n\n```go\ntype FileChangeMsg struct{}\n```\n\n```go\ntype Model struct {\n\tErr error\n\n\tClient      stainless.Client\n\tCtx         context.Context\n\tWatch       bool\n\tIsCompleted bool\n\n\tBranch string\n\n\tIndent string\n\n\tHelp        help.Model\n\tBuild       build.Model\n\tDiagnostics diagnostics.Model\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewModel(cfg ModelConfig) Model\n```\n\n```go\nfunc (m Model) FullHelp() [][]key.Binding\n```\n\n```go\nfunc (m Model) Init() tea.Cmd\n```\n\n```go\nfunc (m Model) ShortHelp() []key.Binding\n```\n\n```go\nfunc (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)\n```\n\n```go\nfunc (m Model) View() string\n```\n\n```go\ntype ModelConfig struct {\n\tClient        stainless.Client\n\tCtx           context.Context\n\tBranch        string\n\tStart         func() (*stainless.Build, error)\n\tDownloadPaths map[stainless.Target]string\n\tWatch         bool\n\tLabel         string   // Header label, defaults to \"PREVIEW\"\n\tWaitMode      WaitMode // When non-zero, auto-quits after diagnostics are fetched and build targets reach completion\n\tIndent        string   // Prefix for every non-empty output line (e.g. \"  \")\n}\n```\n\n```go\ntype ViewPart struct {\n\tName string\n\tView func(*Model, *strings.Builder)\n}\n```\nViewPart represents a single part of the build view\n\n```go\ntype WaitMode int\n```\nWaitMode represents the level of waiting for build completion.\n\n```go\nconst (\n\tWaitNone   WaitMode = iota // Don't wait\n\tWaitCommit                 // Wait for commit only\n\tWaitAll                    // Wait for everything including workflows\n)\n```\n\n","path":"github.com/stainless-api/stainless-api-cli/pkg/components/dev","name":"dev","synopsis":"","isRedistributable":true}
