slugmigrator

package
v0.198.21 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: BSD-2-Clause Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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,
	promptManager PromptManager,
) Migrator

NewMigrator creates a new Migrator that resolves bare spec number refs using specs found in specsDirs.

type PromptManager added in v0.135.18

type PromptManager interface {
	Load(ctx context.Context, path string) (*prompt.PromptFile, error)
}

PromptManager is the subset of prompt.Manager that the slugmigrator package uses.

Jump to

Keyboard shortcuts

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