Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SnapshotString ¶
SnapshotString returns a sorted, newline-joined string of all surface entries.
Types ¶
type DiffResult ¶
type DiffResult struct {
Added []Entry // Entries in new but not in old
Removed []Entry // Entries in old but not in new (breaking changes)
}
DiffResult contains the differences between two surface snapshots.
func Diff ¶
func Diff(old, new []Entry) DiffResult
Diff compares two snapshots and returns additions and removals.
func (DiffResult) HasBreakingChanges ¶
func (d DiffResult) HasBreakingChanges() bool
HasBreakingChanges returns true if any entries were removed.
type Entry ¶
type Entry struct {
Kind EntryKind
Path string // Full command path (e.g., "basecamp projects list")
Name string // Flag or subcommand name
FlagType string // Flag type (e.g., "string", "bool") — only for FLAG entries
}
Entry represents a single element in the CLI surface.
Click to show internal directories.
Click to hide internal directories.