Skip to content

fix: address cora review findings — config show conflicts, save_provider_info safety - #211

Merged
ajianaz merged 1 commit into
developfrom
fix/config-show-review-findings
Jun 7, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/config-show-review-findings

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix 3 findings from cora review --base develop.

Changes

  1. src/main.rs: Add conflicts_with on --global/--project flags — clap now rejects cora config show --global --project
  2. src/config/loader.rs: save_provider_info returns error on parse failure instead of silently replacing config.yaml (prevents data loss)
  3. src/commands/config_cmd.rs: Defensive comment for programmatic invocation

Test Plan

  • cora config show --global --project → clap error
  • cora config show --global → works
  • cora config show --project → works
  • cora config show → works (effective)
  • All tests pass
  • Pre-commit hook passed (no issues found)

…der_info safety

- Add clap conflicts_with on --global/--project flags (mutually exclusive)
- save_provider_info: return error on parse failure instead of silently
  replacing the file (prevents data loss)
- Defensive comment in execute_config_show for programmatic invocation
@ajianaz
ajianaz force-pushed the fix/config-show-review-findings branch from c65e38c to f63f052 Compare June 7, 2026 10:56
@ajianaz
ajianaz merged commit f3644ba into develop Jun 7, 2026
11 checks passed
@ajianaz
ajianaz deleted the fix/config-show-review-findings branch June 8, 2026 04:22
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