Documentation
¶
Overview ¶
Package slugmigrator provides migration of bare spec number references in prompt files to full spec slugs (e.g. "036" → "036-full-slug-spec-references").
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator interface {
// MigrateDirs scans all .md files in each dir and replaces bare spec number
// references with full slugs. Skips files that cannot be parsed.
MigrateDirs(ctx context.Context, promptDirs []string) error
}
Migrator scans prompt files and replaces bare spec number references with full spec slugs.
func NewMigrator ¶
func NewMigrator( specsDirs []string, currentDateTimeGetter libtime.CurrentDateTimeGetter, ) Migrator
NewMigrator creates a new Migrator that resolves bare spec number refs using specs found in specsDirs.
Click to show internal directories.
Click to hide internal directories.