slugmigrator

package
v0.128.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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