configs

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

README

CM Configuration

This directory contains example configuration files for the Code Manager (CM).

Configuration Structure

The CM configuration file uses YAML format and contains the following settings:

Base Path
  • Key: base_path
  • Default: $HOME/.cm
  • Description: The base directory where CM will store its data, including repository worktrees.
Status File
  • Key: status_file
  • Default: $HOME/.cm/status.yaml
  • Description: The path to the status file that tracks CM worktrees and their metadata.
Worktrees Directory
  • Key: worktrees_dir
  • Default: $HOME/.cm/worktrees
  • Description: The directory where CM will store all repository worktrees. If not specified, worktrees will be stored directly under the base_path.

Installation

  1. Copy the default configuration to your home directory:
cp configs/default.yaml ~/.cm/config.yaml
  1. Edit the configuration file to customize settings:
nano ~/.cm/config.yaml
  1. CM will automatically load the configuration from ~/.cm/config.yaml when it starts.

Configuration Format

CM uses YAML format for configuration files. The configuration file should be located at: $HOME/.cm/config.yaml

Example Configuration

# Base path for CM data storage
base_path: /custom/path/to/cm

# Status file path
status_file: /custom/path/to/cm/status.yaml

# Worktrees directory path
worktrees_dir: /custom/path/to/cm/worktrees

Validation

CM validates the configuration on startup:

  • Checks if all required fields are present
  • Validates file paths and permissions
  • If validation fails, CM will fall back to the default configuration

Documentation

Overview

Package configs provides embedded configuration files for the CM application.

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigYAML []byte

DefaultConfigYAML contains the default configuration file content.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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