Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] - Use XDG_CONFIG_HOME to store config file #478

Open
cjones-vultr opened this issue Oct 11, 2024 · 1 comment
Open

[Feature] - Use XDG_CONFIG_HOME to store config file #478

cjones-vultr opened this issue Oct 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cjones-vultr
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I'm always frustrated when applications litter my home directory with their custom configuration files instead of using the standard XDG_CONFIG_HOME folder to organize their config files.

Describe the solution you'd like
Ideally, the default location to look for the config file would be ${XDG_CONFIG_HOME:-$HOME/.config}/vultr-cli/config.yaml

Describe alternatives you've considered

  • Manually putting the config each invocation
  • Wrapping the command in a shell alias to always pass the config string
@cjones-vultr cjones-vultr added the enhancement New feature or request label Oct 11, 2024
@optik-aper optik-aper self-assigned this Oct 15, 2024
@optik-aper
Copy link
Member

That makes sense. I'll workout how this is handled in cobra and implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants