-
Notifications
You must be signed in to change notification settings - Fork 77
respect XDG_CONFIG_HOME if set #135
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for respecting the XDG_CONFIG_HOME environment variable when creating new configuration files, improving adherence to XDG Base Directory standards on Unix-like systems. The PR also includes minor improvements to error message consistency and documentation formatting.
Changes:
- Add XDG_CONFIG_HOME support for new config file creation in cmd/root.go
- Standardize error message capitalization (lowercase sentence start) across client code
- Update README documentation and improve code block formatting (bash → sh, proper indentation)
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| cmd/root.go | Implements XDG_CONFIG_HOME environment variable support when creating new config files, with fallback to home directory dotfile |
| client/lessons.go | Normalizes error message capitalization from "To run" to "to run" |
| client/auth.go | Normalizes error message capitalization from "To run" to "to run" |
| README.md | Updates documentation about config file location and improves formatting (bash→sh, proper indentation of nested content) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d18cfe9 to
6d0fd4b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Mufeed Ali <me@mufeed.dev>
6d0fd4b to
efa1460
Compare
See also #100. I favored a different implementation but have added the author of that PR as a co-author here.