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

Move default config location to $XDG_CONFIG_HOME/mwcli.yml #246

Open
samwilson opened this issue Nov 9, 2024 · 0 comments
Open

Move default config location to $XDG_CONFIG_HOME/mwcli.yml #246

samwilson opened this issue Nov 9, 2024 · 0 comments

Comments

@samwilson
Copy link
Owner

samwilson commented Nov 9, 2024

The config file is currently called config.yml and is in the mwcli directory by default. The --config option (to all commands) can be used to override the location and filename.

It'd be better to have the config be by default in $XDG_CONFIG_HOME/mwcli.yml. The idea is that all sites have their config in that file, so there won't be any need for a subdirectory. And it will still be able to be overridden. dnoegel/php-xdg-base-dir could be used.

If an existing config.yml is found, the user should be asked if they want to move it.

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

1 participant