cctpaths

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package cctpaths resolves cct's own on-disk locations, kept deliberately separate from any coding-agent home. cct keeps a small amount of cross-cutting state of its own — config.json (user defaults), meta.json (session tags and names), and the LAN-sync identity/peer store — and that state lives under the OS config directory, NEVER inside ~/.codex or ~/.claude.

Index

Constants

View Source
const ConfigDirEnv = "CCT_CONFIG_DIR"

ConfigDirEnv lets tests (and power users) point cct's config directory somewhere hermetic without touching the real one.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir(override string) (string, error)

ConfigDir returns cct's config directory. An explicit override wins (used by callers that already resolved a location, e.g. lansync options and tests); otherwise $CCT_CONFIG_DIR is honored, and finally the OS user config dir's cct/ subdirectory is used. The directory is not created here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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