Skip to content

refactor: extract spawn_editor and upsert_repo_config helpers#27

Merged
rrbe merged 2 commits into
mainfrom
feat/cli-edit
May 21, 2026
Merged

refactor: extract spawn_editor and upsert_repo_config helpers#27
rrbe merged 2 commits into
mainfrom
feat/cli-edit

Conversation

@rrbe
Copy link
Copy Markdown
Owner

@rrbe rrbe commented May 21, 2026

  • feat: grove hook edit and grove config edit
  • fix: don't persist sample config on no-change edit; surface TOML error on non-TTY
  • refactor: extract spawn_editor and upsert_repo_config helpers

Move editor spawn logic into platform::{posix,windows} so cli.rs no
longer carries cfg-gated process plumbing, and centralize the
"insert-or-remove-if-empty" repo config write into store::upsert_repo_config
so cli and lib share one path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rrbe rrbe force-pushed the feat/cli-edit branch from 0ee026c to 5db338a Compare May 21, 2026 01:37
@rrbe rrbe changed the title fix: cli edit improve refactor: extract spawn_editor and upsert_repo_config helpers May 21, 2026
Locks in the invariant that effectively-empty configs never
sit in repo_configs as all-default placeholders.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rrbe rrbe merged commit d788079 into main May 21, 2026
3 checks passed
@rrbe rrbe deleted the feat/cli-edit branch May 21, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant