sassoftware / sassoftware/viya4-orders-cli
Feature Request: Use of $XDG_CONFIG_HOME in configuration path
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 20
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
As a user who needs to manage many CLI tools, I would like a consistent default pattern to where config files are sourced. The XDG base directory specification was introduced in 2003 to suggest such a consistent pattern.
For configurations it reads:
$XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
Ideally I would like a consistent pattern across all SAS CLI based tools, which could all use the same directory such as $XDG_CONFIG_HOME/sas or $HOME/.config/sas so that config files for the sas-viya cli, the viya4-orders-cli would be grouped by the vendor or software suite.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating how this CLI currently chooses its configuration directory and review the linked XDG Base Directory Specification. Determine the expected behavior when XDG_CONFIG_HOME is set, empty, or unset, and verify that configuration files use the resulting path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100