Skip to content

Look for the config in ~/.config/rcon-cli too - #106

Merged
itzg merged 1 commit into
itzg:mainfrom
eliasehmann:xdg-config
Nov 19, 2026
Merged

itzg merged 1 commit into
itzg:mainfrom
eliasehmann:xdg-config

Conversation

@eliasehmann

Copy link
Copy Markdown
Contributor

Fixes #5

rcon-cli now checks ~/.config/rcon-cli/config.yaml first (or wherever $XDG_CONFIG_HOME points) and falls back to the old ~/.rcon-cli.yaml if it's not there. So nothing changes for existing setups, unless you have both files, then the new one wins.

I used os.UserConfigDir(), which on macOS gives ~/Library/Application Support. If you'd rather have ~/.config everywhere, tell me and I'll change it.

Added a test and updated the README.

@itzg itzg added enhancement release/minor On merge, creates a new release with a minor version bump. labels Nov 19, 2026
@itzg
itzg merged commit 0141911 into itzg:main Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement release/minor On merge, creates a new release with a minor version bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

please conform to the newer ~/.config/rcon-cli dotfile standard

2 participants