[PR #115] [MERGED] feat(cli): add config override support for core fields #147

Closed
opened 2026-02-27 10:22:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/115
Author: @cdriscol
Created: 1/25/2026
Status: Merged
Merged: 1/25/2026
Merged by: @mikeyobrien

Base: mainHead: feat/config-variable-substitution-final


📝 Commits (1)

  • 1f47483 feat(cli): add config override support for core fields

📊 Changes

4 files changed (+825 additions, -86 deletions)

View changed files

📝 crates/ralph-cli/src/main.rs (+449 -85)
📝 docs/guide/cli-reference.md (+50 -1)
📝 docs/guide/configuration.md (+32 -0)
specs/cli-config-overrides.spec.md (+294 -0)

📄 Description

Add -c core.field=value syntax to override core config fields from CLI. This enables isolated scratchpads for parallel runs without separate config files.

Supported fields:

  • core.scratchpad: Override scratchpad path
  • core.specs_dir: Override specs directory

Features:

  • Parse once in main(), pass &[ConfigSource] slice to commands
  • Auto-create scratchpad directories
  • Warn on unknown core.* fields via tracing
  • Skip directory creation during --dry-run
  • Overrides layer on top of ralph.yml (loaded by default)
  • Extract load_config_with_overrides() to reduce duplication

Example usage:
ralph run -c core.scratchpad=.agent/feature-x/scratchpad.md


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mikeyobrien/ralph-orchestrator/pull/115 **Author:** [@cdriscol](https://github.com/cdriscol) **Created:** 1/25/2026 **Status:** ✅ Merged **Merged:** 1/25/2026 **Merged by:** [@mikeyobrien](https://github.com/mikeyobrien) **Base:** `main` ← **Head:** `feat/config-variable-substitution-final` --- ### 📝 Commits (1) - [`1f47483`](https://github.com/mikeyobrien/ralph-orchestrator/commit/1f474836bda65fd25f7fc8a0c58626732c9fce66) feat(cli): add config override support for core fields ### 📊 Changes **4 files changed** (+825 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `crates/ralph-cli/src/main.rs` (+449 -85) 📝 `docs/guide/cli-reference.md` (+50 -1) 📝 `docs/guide/configuration.md` (+32 -0) ➕ `specs/cli-config-overrides.spec.md` (+294 -0) </details> ### 📄 Description Add -c core.field=value syntax to override core config fields from CLI. This enables isolated scratchpads for parallel runs without separate config files. Supported fields: - core.scratchpad: Override scratchpad path - core.specs_dir: Override specs directory Features: - Parse once in main(), pass &[ConfigSource] slice to commands - Auto-create scratchpad directories - Warn on unknown core.* fields via tracing - Skip directory creation during --dry-run - Overrides layer on top of ralph.yml (loaded by default) - Extract load_config_with_overrides() to reduce duplication Example usage: ralph run -c core.scratchpad=.agent/feature-x/scratchpad.md --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:22:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ralph-orchestrator#147
No description provided.