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

Use proper XDG configuration folders instead of just HOME #148

Open
shyim opened this issue Nov 6, 2023 · 3 comments
Open

Use proper XDG configuration folders instead of just HOME #148

shyim opened this issue Nov 6, 2023 · 3 comments

Comments

@shyim
Copy link

shyim commented Nov 6, 2023

 # BEGIN: Upsun certificate configuration
Host *.platform.sh *.upsun.com
  Include /Users/shyim/.upsun-cli/ssh/*.config
Host *
# END: Upsun certificate configuratio

The complete .upsun-cli folder should be at ~/Library/Application\ Support/upsun-cli

See https://pkg.go.dev/os#UserConfigDir

@shyim shyim changed the title Use proper XDF configuration folders instead of just HOME Use proper XDG configuration folders instead of just HOME Nov 6, 2023
@akalipetis
Copy link
Member

@shyim thanks for reporting. We could definitely do something like this, but given that we currently have a rather complex setup with our Legacy CLI and new functionality working side-by-side here, we've decided not to touch on configuration directories for now.

If you'd like, you can still choose your configuration directory with the following environment variable:

export UPSUN_CLI_APPLICATION_USER_CONFIG_DIR=Application\ Support/upsun-cli

If you need this at all times, you can add this to your .zshrc/.bashrc files as well.

@akalipetis akalipetis closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2023
@shyim
Copy link
Author

shyim commented Nov 27, 2023

Maybe leave this issue open with a label so it won't get lost. I hope the legacy cli will be removed 🙈

@akalipetis
Copy link
Member

Sure, let me reopen this.

@akalipetis akalipetis reopened this Dec 7, 2023
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

No branches or pull requests

2 participants