sync

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the "ctx sync" command for reconciling context with codebase.

The command scans the codebase for changes that should be reflected in context files, such as new directories, package manager files, and configuration files.

Flags:

  • --dry-run: Show what would change without modifying files

Returns:

  • *cobra.Command: Configured sync command with flags registered

Types

type Action

type Action struct {
	Type        string
	File        string
	Description string
	Suggestion  string
}

Action represents a suggested sync action.

Fields:

  • Type: Category of action (e.g., "DEPS", "CONFIG", "NEW_DIR")
  • File: Context file that should be updated
  • Description: What was detected that needs attention
  • Suggestion: Recommended action to take

Jump to

Keyboard shortcuts

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