platformsh / cli

The unified tool for managing your Platform.sh services from the command line.
https://docs.platform.sh/administration/cli.html
MIT License
16 stars 6 forks source link

Use proper XDG configuration folders instead of just HOME #148

Open shyim opened 8 months ago

shyim commented 8 months ago
 # 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

akalipetis commented 7 months ago

@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.

shyim commented 7 months ago

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

akalipetis commented 7 months ago

Sure, let me reopen this.