Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.

Remove the --config flag - #56

Merged
sidkmenon merged 4 commits into
cli/derivefrom
cli/no-config-flag
Sep 30, 2026
Merged

sidkmenon merged 4 commits into
cli/derivefrom
cli/no-config-flag

Conversation

@sidkmenon

Copy link
Copy Markdown
Contributor

Stack created with GitHub Stacks CLI • Give Feedback 💬

Behavior change (with the next commit): Config::load no longer takes an
explicit path; it reads $XDG_CONFIG_HOME/diffr/config.toml, a missing file
being the defaults. The file-reading half becomes load_from, which the unit
tests call directly.

AI assistance: Claude Code.

Agent-Session: b28d94c6-2325-41ab-9fab-e9027acc5b09
Agent-Session: 01a0e9c2-2c41-7062-b484-92e030c4ab9c
Behavior change: `--config PATH` is now an unknown argument, and `config
set` always writes the global file. Only tests used the flag: the
settings screen always edits the global file, and XDG_CONFIG_HOME already
points diffr at another config home.

AI assistance: Claude Code.

Agent-Session: b28d94c6-2325-41ab-9fab-e9027acc5b09
Agent-Session: 01a0e9c2-2c41-7062-b484-92e030c4ab9c
No behavior change. Each test writes its config as <home>/diffr/config.toml
and sets XDG_CONFIG_HOME to <home>, as tests/view.rs already does.
Relative plugin paths still resolve against the file's own folder.

AI assistance: Claude Code.

Agent-Session: b28d94c6-2325-41ab-9fab-e9027acc5b09
Agent-Session: 01a0e9c2-2c41-7062-b484-92e030c4ab9c
AI assistance: Claude Code.

Agent-Session: b28d94c6-2325-41ab-9fab-e9027acc5b09
Agent-Session: 01a0e9c2-2c41-7062-b484-92e030c4ab9c
@sidkmenon
sidkmenon added this pull request to stack #59 September 30, 2026 16:28
@sidkmenon
sidkmenon marked this pull request as ready for review September 30, 2026 17:11
@sidkmenon sidkmenon changed the title cli/no config flag Remove the --config flag Sep 30, 2026
@sidkmenon
sidkmenon merged commit f62795c into main Sep 30, 2026
46 checks passed
@thesiti92 thesiti92 mentioned this pull request Sep 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant