Documentation
¶
Overview ¶
Package config handles configuration loading for visionspec.
Index ¶
- Constants
- func EvalPath(projectPath string, specType types.SpecType) string
- func FindConstitution(projectPath string) string
- func FindProjectRoot(startPath string) (string, error)
- func FindSpecsDir(startPath string) (string, error)
- func Load(projectPath string) (*types.Project, error)
- func LoadConstitution(projectPath string) string
- func ProjectPath(specsDir, projectName string) string
- func Save(project *types.Project) error
- func SpecPath(projectPath string, specType types.SpecType) string
Constants ¶
const ( // ConfigFileName is the canonical config file name. ConfigFileName = "visionspec.yaml" // LegacyConfigFileName supports migration from multispec. LegacyConfigFileName = "multispec.yaml" // SpecsDir is the canonical specs directory name. SpecsDir = "docs/specs" // ConstitutionFile is the repo-level constitution file name. ConstitutionFile = "CONSTITUTION.md" // RoadmapFile is the repo-level roadmap file name. RoadmapFile = "ROADMAP.md" )
const ( SourceDir = "source" GTMDir = "gtm" TechnicalDir = "technical" EvalDir = "eval" )
Subdirectories within a project.
Variables ¶
This section is empty.
Functions ¶
func FindConstitution ¶
FindConstitution finds the constitution file from multiple locations. Search order (first found wins): 1. Repo-level: docs/specs/CONSTITUTION.md (from project path) 2. Org-level: ~/.config/visionspec/CONSTITUTION.md Returns the path if found, empty string otherwise.
func FindProjectRoot ¶
FindProjectRoot finds the project root by looking for visionspec.yaml (or legacy multispec.yaml).
func FindSpecsDir ¶
FindSpecsDir finds the specs directory from the current path.
func LoadConstitution ¶
LoadConstitution loads the constitution content from the first found location. Returns empty string if no constitution file exists.
func ProjectPath ¶
ProjectPath returns the full path for a project within the specs directory.
Types ¶
This section is empty.