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

Documentation

Overview

Package sync implements the ctx recall sync subcommand.

It scans journal markdowns and syncs their frontmatter lock state into the state file, treating frontmatter as the source of truth.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the "ctx recall sync" subcommand.

Scans journal markdowns and syncs their frontmatter lock state into .state.json. This is the inverse of "ctx recall lock": the frontmatter is treated as the source of truth, and the state is updated to match.

Returns:

  • *cobra.Command: Command for syncing lock state from frontmatter

func Run

func Run(cmd *cobra.Command) error

Run scans all journal markdowns and syncs frontmatter lock state to .state.json.

Parameters:

  • cmd: Cobra command for output

Returns:

  • error: Non-nil on I/O failure

Types

This section is empty.

Jump to

Keyboard shortcuts

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