Skip to content

Added XDG support#55

Closed
glymphie wants to merge 4 commits into
contabo:mainfrom
glymphie:main
Closed

Added XDG support#55
glymphie wants to merge 4 commits into
contabo:mainfrom
glymphie:main

Conversation

@glymphie
Copy link
Copy Markdown

@glymphie glymphie commented Apr 8, 2026

Added a new default for where the .cntb.yaml lives.
New default is $XDG_CONFIG_HOME/cntb/.cntb.yaml if $XDG_CONFIG_HOME exists.
With backwards support for $HOME/.cntb.yaml files if it exists.

This addresses #39

Also added support for $XDG_CACHE_HOME for the token.
New default is $XDG_CACHE_HOME/cntb/.
Defaults to $HOME/.cache/cntb/ if $XDG_CACHE_HOME isn't declared.

glymphie added 4 commits April 8, 2026 16:16
Added a new default for where the .cntb.yaml lives.
New default is `$XDG_CONFIG_HOME/cntb/.cntb.yaml`, with backwards support
for `$HOME/.cntb.yaml` files.
Added XDG support for how the `token` is stored in cache.
New default is `$XDG_CACHE_HOME/cntb/token`.
Which resolves to `$HOME/.cache/cntb/token` if `$XDG_CACHE_HOME` isn't
declared.
Clarified how the xdg default works.
Corrected help text to reflect xdg support:
The first checked config is `$XDG_CONFIG_HOME/cntb/.cntb.yaml`.
@glymphie
Copy link
Copy Markdown
Author

glymphie commented Apr 12, 2026

I made a separate branch for this feature #57

@glymphie glymphie closed this Apr 12, 2026
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