Documentation
¶
Overview ¶
Package steps handles build step execution and transitions.
Index ¶
- type Engine
- func (e *Engine) AllComplete(meta *markdown.SpecMeta) bool
- func (e *Engine) BlockStep(meta *markdown.SpecMeta, index int, reason string) error
- func (e *Engine) BranchName(specID string, stepIndex int, description string) string
- func (e *Engine) CompleteStep(meta *markdown.SpecMeta, index int, prNumber int) error
- func (e *Engine) CurrentStep(meta *markdown.SpecMeta) *planning.Step
- func (e *Engine) GetNextStep(meta *markdown.SpecMeta) (*NextStep, error)
- func (e *Engine) Progress(meta *markdown.SpecMeta) (completed, total int, currentStep *planning.Step)
- func (e *Engine) StartStep(meta *markdown.SpecMeta, index int) (branchName string, err error)
- func (e *Engine) StepByIndex(meta *markdown.SpecMeta, index int) *planning.Step
- func (e *Engine) UnblockStep(meta *markdown.SpecMeta, index int) error
- func (e *Engine) WorkspacePath(repoName string) string
- type NextStep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine orchestrates build step execution.
func NewEngine ¶
func NewEngine(userConfig *config.UserConfig) *Engine
NewEngine creates a new steps engine.
func (*Engine) AllComplete ¶
AllComplete returns true if all steps are complete.
func (*Engine) BranchName ¶
BranchName generates a branch name for a step.
func (*Engine) CompleteStep ¶
CompleteStep marks a step as complete.
func (*Engine) CurrentStep ¶
CurrentStep returns the current (first non-complete) step for a spec.
func (*Engine) GetNextStep ¶
GetNextStep determines what to work on next.
func (*Engine) Progress ¶
func (e *Engine) Progress(meta *markdown.SpecMeta) (completed, total int, currentStep *planning.Step)
Progress returns build progress info.
func (*Engine) StepByIndex ¶
StepByIndex returns a specific step by 1-based index.
func (*Engine) UnblockStep ¶
UnblockStep removes the blocked status from a step.
func (*Engine) WorkspacePath ¶
WorkspacePath returns the local path for a repo, or empty if not configured.
Click to show internal directories.
Click to hide internal directories.