drift

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package drift wires the pkg/drift engine into `canary drift`: it reads the token index built by `canary index` and reports, per requirement, whether the tree still matches the baseline — CURRENT, DRIFTED, or UNKNOWN — decided by content hash and git availability, never by a token's UPDATED= date. Staleness and documentation rollup are printed as a clearly separate advisory section and never affect the drift verdict or the exit code. CANARY: REQ=CP-278; FEATURE="DriftCmd"; ASPECT=CLI; STATUS=TESTED; TEST=TestCANARY_CP_278_Cmd_JSON_Clean,TestCANARY_CP_278_Cmd_JSON_Drifted,TestCANARY_CP_278_Cmd_Table_NoDrift,TestCANARY_CP_278_Cmd_NoIndex,TestCANARY_CP_278_SummaryLine_Format,TestCANARY_CP_278_StrictShouldFail; UPDATED=2026-08-30

Index

Constants

View Source
const DefaultLimit = 20

DefaultLimit bounds the requirement list in table mode by default; raise it with --limit when more is needed.

Variables

This section is empty.

Functions

func CreateDriftCommand

func CreateDriftCommand() *cobra.Command

CreateDriftCommand returns the `canary drift` command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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