memory

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package memory provides terminal output functions for the memory command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archives

func Archives(cmd *cobra.Command, count int, dir string)

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

func BridgeHeader(cmd *cobra.Command)

BridgeHeader prints the "Memory Bridge Status" heading.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func DiffOutput

func DiffOutput(cmd *cobra.Command, diff string)

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

func DriftDetected(cmd *cobra.Command)

DriftDetected prints that drift was detected.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func DriftNone

func DriftNone(cmd *cobra.Command)

DriftNone prints that no drift was detected.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func LastSync

func LastSync(cmd *cobra.Command, formatted, ago string)

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

func LastSyncNever(cmd *cobra.Command)

LastSyncNever prints that no sync has occurred.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func Mirror

func Mirror(cmd *cobra.Command, relativePath string)

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

func MirrorLines(cmd *cobra.Command, count int)

MirrorLines prints the mirror line count.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • count: number of lines.

func MirrorNotSynced

func MirrorNotSynced(cmd *cobra.Command)

MirrorNotSynced prints that the mirror has not been synced yet.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func NoChanges

func NoChanges(cmd *cobra.Command)

NoChanges prints that no changes exist since last sync.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func Source

func Source(cmd *cobra.Command, path string)

Source prints the source path.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • path: absolute path to MEMORY.md.

func SourceLines

func SourceLines(cmd *cobra.Command, count int, drifted bool)

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

func SourceNotActive(cmd *cobra.Command)

SourceNotActive prints that auto memory is not active.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func StatusSeparator

func StatusSeparator(cmd *cobra.Command)

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.

Jump to

Keyboard shortcuts

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