Documentation
¶
Overview ¶
Package memory provides terminal output functions for the memory command.
Index ¶
- func Archives(cmd *cobra.Command, count int, dir string)
- func BridgeHeader(cmd *cobra.Command)
- func DiffOutput(cmd *cobra.Command, diff string)
- func DriftDetected(cmd *cobra.Command)
- func DriftNone(cmd *cobra.Command)
- func LastSync(cmd *cobra.Command, formatted, ago string)
- func LastSyncNever(cmd *cobra.Command)
- func Mirror(cmd *cobra.Command, relativePath string)
- func MirrorLines(cmd *cobra.Command, count int)
- func MirrorNotSynced(cmd *cobra.Command)
- func NoChanges(cmd *cobra.Command)
- func Source(cmd *cobra.Command, path string)
- func SourceLines(cmd *cobra.Command, count int, drifted bool)
- func SourceNotActive(cmd *cobra.Command)
- func StatusSeparator(cmd *cobra.Command)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Archives ¶
Archives prints the archive snapshot count.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- count: number of archived snapshots.
- dir: archive directory name relative to .context/.
func BridgeHeader ¶
BridgeHeader prints the "Memory Bridge Status" heading.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
func DiffOutput ¶
DiffOutput prints diff content to stdout.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- diff: The diff text to print.
func DriftDetected ¶
DriftDetected prints that drift was detected.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
func DriftNone ¶
DriftNone prints that no drift was detected.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
func LastSync ¶
LastSync prints the last sync timestamp with age.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- formatted: formatted timestamp string.
- ago: human-readable duration since sync.
func LastSyncNever ¶
LastSyncNever prints that no sync has occurred.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
func Mirror ¶
Mirror prints the mirror relative path.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- relativePath: mirror path relative to project root.
func MirrorLines ¶
MirrorLines prints the mirror line count.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- count: number of lines.
func MirrorNotSynced ¶
MirrorNotSynced prints that the mirror has not been synced yet.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
func NoChanges ¶
NoChanges prints that no changes exist since last sync.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
func Source ¶
Source prints the source path.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- path: absolute path to MEMORY.md.
func SourceLines ¶
SourceLines prints the MEMORY.md line count.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- count: number of lines.
- drifted: whether the source has changed since last sync.
func SourceNotActive ¶
SourceNotActive prints that auto memory is not active.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
func StatusSeparator ¶
StatusSeparator prints a blank line for visual separation in status output.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
Types ¶
This section is empty.