ccgwz
Version:
Claude Code Git Worktree Zellij - CLI tool for parallel development with git worktrees and Claude Code in zellij panes
49 lines • 1.63 kB
JavaScript
export const DEFAULT_CONFIG = {
default: {
panes: 2,
layout: 'vertical',
},
git: {
worktreePrefix: '../',
branchPrefix: '',
autoIncrement: true,
},
zellij: {
sessionName: 'ccgwz',
autoStart: false,
},
claudeCode: {
command: 'claude',
args: [],
startupDelay: 1000,
},
};
export const CONFIG_FILES = [
'./ccgwz.yaml',
'~/.config/ccgwz/config.yaml',
'~/.ccgwz.yaml',
];
export const ZELLIJ_COMMANDS = {
LIST_SESSIONS: 'zellij list-sessions',
NEW_TAB: (name) => `zellij action new-tab --name "${name}"`,
NEW_PANE_RIGHT: 'zellij action new-pane -d right',
NEW_PANE_DOWN: 'zellij action new-pane -d down',
MOVE_FOCUS_UP: 'zellij action move-focus up',
RUN_COMMAND: (cwd, command) => `zellij action new-pane --cwd "${cwd}" -- ${command}`,
};
export const GIT_COMMANDS = {
IS_REPO: 'git rev-parse --is-inside-work-tree',
GET_PROJECT_NAME: 'git remote get-url origin',
GET_CURRENT_BRANCH: 'git branch --show-current',
CREATE_WORKTREE: (path, branch) => `git worktree add "${path}" -b "${branch}"`,
LIST_WORKTREES: 'git worktree list',
};
export const ERROR_MESSAGES = {
NOT_GIT_REPO: 'Current directory is not a git repository',
ZELLIJ_NOT_RUNNING: 'Zellij is not running. Please start zellij first',
INVALID_PANE_COUNT: 'Pane count must be between 1 and 10',
WORKTREE_EXISTS: 'Worktree directory already exists',
BRANCH_EXISTS: 'Branch already exists',
CLAUDE_NOT_FOUND: 'Claude Code command not found',
};
//# sourceMappingURL=constants.js.map