Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserCancelled = errors.New("user cancelled")
Functions ¶
func ViewBuildRange ¶
ViewBuildRange renders the build view from startView to endView (inclusive) Returns empty string if views are not found
Types ¶
type FileChangeMsg ¶
type FileChangeMsg struct{}
type Model ¶
type Model struct {
Err error
Client stainless.Client
Ctx context.Context
Watch bool
IsCompleted bool
Branch string
Indent string
Help help.Model
Build build.Model
Diagnostics diagnostics.Model
// contains filtered or unexported fields
}
func NewModel ¶
func NewModel(cfg ModelConfig) Model
type ModelConfig ¶
type ModelConfig struct {
Client stainless.Client
Ctx context.Context
Branch string
Start func() (*stainless.Build, error)
DownloadPaths map[stainless.Target]string
Watch bool
Label string // Header label, defaults to "PREVIEW"
WaitMode WaitMode // When non-zero, auto-quits after diagnostics are fetched and build targets reach completion
Indent string // Prefix for every non-empty output line (e.g. " ")
}
Click to show internal directories.
Click to hide internal directories.