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 ¶
Cmd returns the memory sync subcommand.
Returns:
- *cobra.Command: command for syncing MEMORY.md to mirror.
func Run ¶
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.
Click to show internal directories.
Click to hide internal directories.