run

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCommand added in v0.1.4

func ApplyCommand(runs tui.RunService, issuer resource.Resource, runIDs ...resource.ID) tea.Cmd

ApplyCommand creates a tea command for applying runs

func CreateRuns added in v0.1.4

func CreateRuns(runs tui.RunService, issuer resource.Resource, opts run.CreateOptions, workspaceIDs ...resource.ID) tea.Cmd

CreateRuns creates a tea command for creating runs and sending the user to the appropriate page.

func HandleCreatedRuns added in v0.1.11

func HandleCreatedRuns(msg CreatedRunsMsg) (navigate tea.Cmd, info string, err error)

Types

type CreatedRunsMsg added in v0.1.4

type CreatedRunsMsg struct {
	Runs []*run.Run
	// Errors from creating tasks
	CreateErrs []error
	// The parent resource of the page on which the request to create runs was
	// issued.
	Issuer resource.Resource
}

type ListMaker

type ListMaker struct {
	ModuleService    tui.ModuleService
	WorkspaceService tui.WorkspaceService
	RunService       tui.RunService
	TaskService      tui.TaskService
	Helpers          *tui.Helpers
}

func (*ListMaker) Make

func (m *ListMaker) Make(parent resource.Resource, width, height int) (tea.Model, error)

type Maker

type Maker struct {
	RunService  tui.RunService
	TaskService tui.TaskService
	Spinner     *spinner.Model
	Helpers     *tui.Helpers
}

func (*Maker) Make

func (mm *Maker) Make(rr resource.Resource, width, height int) (tea.Model, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL