Documentation
¶
Overview ¶
Package flowlist is the read-only flow list component. Its host forwards messages to it, renders Content, and handles the messages it emits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackMsg ¶
type BackMsg struct{}
BackMsg asks the host to show runs, without ending the program.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a Bubble Tea component, not a standalone tea.Model.
func New ¶
func New(ctx context.Context, list func(context.Context) ([]circleci.Flow, error), preview func(context.Context, string) (string, []circleci.PlanComment, error)) Model
New creates a list of the flows list returns, each previewed with preview. Both callbacks must honor ctx cancellation.
func (Model) Content ¶
Content draws the flow list, its footer included, within the last WindowSizeMsg. The host draws the header above it.
func (Model) Refresh ¶
Refresh requests fresh list and preview data. Concurrent refresh requests coalesce; only one list callback can be in flight at a time.
func (Model) Select ¶
Select selects a flow. The next Update starts its preview; hosts can issue Refresh after Select to start that update immediately when returning from a workspace.