initflow

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeSelectedProfiles

func MergeSelectedProfiles(base *config.RepoConfig, selectedIDs []string, customPaths []string, customRules []config.SourceRule) (*config.RepoConfig, error)

MergeSelectedProfiles merges built-in profile selections and optional custom markdown paths/rules into a copy of base. Empty selectedIDs leaves base unchanged (aside from custom additions).

func RunProfilePick

func RunProfilePick(repoRoot string) (selected []string, customPaths []string, customRules []config.SourceRule, err error)

RunProfilePick runs the interactive profile multi-select and optional custom markdown wizard. It returns selected profile IDs (excluding custom), plus paths and rules contributed by the custom wizard.

Types

type DetectedPattern

type DetectedPattern struct {
	Label       string
	Match       string
	DefaultKind string
	FileCount   int
}

DetectedPattern describes a filesystem-derived glob→kind proposal for one source directory.

func DetectPatterns

func DetectPatterns(repoRoot, sourcePath string) []DetectedPattern

DetectPatterns scans a markdown source directory (repo-relative) up to two levels and returns proposed glob→kind mappings based on common naming conventions. The default kind is inferred from the directory name (e.g. "decisions" → decision).

Jump to

Keyboard shortcuts

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