pkg

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice struct {
	Label  string
	Value  interface{}
	Parent *Choice
}

type Job

type Job struct {
	Name     string `yaml:"name"`
	Fastened bool   `yaml:"fastened"`
}

type Model

type Model struct {
	Choices []*Choice // items on the to-do list

	Selected map[int]struct{} // which to-do items are selected
	// contains filtered or unexported fields
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Workflow

type Workflow struct {
	FileName string
	Name     string
	Jobs     []*Job
}

type WorkflowClient

type WorkflowClient struct {
	WorkflowDir string
}

func NewWorkflowClient

func NewWorkflowClient(workflowDir string) *WorkflowClient

func (*WorkflowClient) AddBoltToWorkflow

func (w *WorkflowClient) AddBoltToWorkflow(workflowFileName string, jobsToBeBolted []string) error

func (*WorkflowClient) GetWorkflows

func (w *WorkflowClient) GetWorkflows() ([]*Workflow, error)

Jump to

Keyboard shortcuts

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