sassoftware / sassoftware/viya4-orders-cli

Feature Request: Use of $XDG_CONFIG_HOME in configuration path

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.