profiles

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package profiles defines built-in workflow presets for ds init.

Index

Constants

View Source
const IDCustom = "custom"

Sentinel ID for the custom markdown wizard (not a filesystem detectable preset).

Variables

This section is empty.

Functions

func Detect

func Detect(repoRoot string, m *ignore.Matcher) []string

Detect returns profile IDs whose DetectDirs match existing (non-ignored) directories.

Types

type WorkflowProfile

type WorkflowProfile struct {
	ID          string
	Label       string
	Description string
	// SourceType is "markdown", "openspec", or "adr".
	SourceType string
	Paths      []string
	DetectDirs []string
	Rules      []config.SourceRule
}

WorkflowProfile is a selectable preset that contributes paths and optional markdown rules.

func All

func All() []WorkflowProfile

All returns the registry of built-in profiles (excluding Custom).

func ByID

func ByID(id string) (WorkflowProfile, bool)

ByID returns a built-in profile or ok=false.

func CustomProfile

func CustomProfile() WorkflowProfile

CustomProfile returns the synthetic custom profile entry for multi-select UIs.

Jump to

Keyboard shortcuts

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