migrate

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OrphanCmd = &cobra.Command{
	Use:   "orphan",
	Short: "Manage orphaned CANARY tokens (tokens without specifications)",
	Long: `Generate specifications and plans for requirements with orphaned tokens.

Orphaned requirements are those that have CANARY tokens in the codebase but no
formal specification file in .canary/specs/. This typically happens when migrating
legacy code or when tokens were added without following the requirement-first workflow.

The orphan command:
1. Detects requirements with tokens but no specs
2. Generates spec.md from existing token metadata
3. Generates plan.md reflecting current implementation state
4. Filters out documentation/example tokens automatically`,
	Example: `  # Detect orphaned requirements
  canary orphan detect

  # Migrate a specific requirement
  canary orphan run CBIN-105

  # Migrate all orphaned requirements
  canary orphan run --all

  # Preview migration without creating files
  canary orphan run --all --dry-run`,
}

CANARY: REQ=CBIN-145; FEATURE="MigrateParentCommand"; ASPECT=CLI; STATUS=IMPL; UPDATED=2025-10-17

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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