sync

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: 12 Imported by: 0

Documentation

Overview

Package sync implements the "ctx memory sync" subcommand.

Package sync implements the ctx memory sync subcommand.

It synchronizes MEMORY.md content to its configured mirror location.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the memory sync subcommand.

Returns:

  • *cobra.Command: command for syncing MEMORY.md to mirror.

func Run

func Run(cmd *cobra.Command, dryRun bool) error

Run discovers MEMORY.md, mirrors it into .context/memory/, and updates the sync state. In dry-run mode it reports what would happen without writing any files.

Parameters:

  • cmd: Cobra command for output routing.
  • dryRun: when true, report the plan without writing.

Returns:

  • error: on discovery failure, sync failure, or state persistence failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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