Skip to content

Use proper XDG configuration folders instead of just HOME #148

Open
@shyim

Description

@shyim
 # 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

Activity

changed the title Use proper XDF configuration folders instead of just HOME Use proper XDG configuration folders instead of just HOME on Nov 6, 2023
akalipetis

akalipetis commented on Nov 27, 2023

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

shyim

shyim commented on Nov 27, 2023

@shyim
Author

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

akalipetis

akalipetis commented on Dec 7, 2023

@akalipetis
Member

Sure, let me reopen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Use proper XDG configuration folders instead of just HOME · Issue #148 · platformsh/cli