specworkflow

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package specworkflow provides spec workflow management and built-in workflow definitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltInWorkflows

func BuiltInWorkflows() []*store.SpecWorkflow

BuiltInWorkflows returns the default spec workflow definitions.

func DefaultWorkflowForType

func DefaultWorkflowForType(initType string) string

DefaultWorkflowForType returns the default workflow ID for an initiative type.

func Resolve

Resolve returns the workflow that applies to an initiative: its explicit WorkflowID override if set, otherwise the default for its type. It checks the store first, falling back to the built-in definitions so resolution works even before `workflow seed` has been run.

func SeedBuiltIn

func SeedBuiltIn(ctx context.Context, s store.SpecWorkflowStore) (int, error)

SeedBuiltIn creates the built-in workflows if they don't exist. Returns the number of workflows created.

func SpecDir

func SpecDir(initiativeID string) string

SpecDir returns the canonical spec directory for an initiative, relative to its home repository root: docs/specs/initiatives/{INIT-ID}/

Types

This section is empty.

Jump to

Keyboard shortcuts

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