Load configuration from files #9

Closed
opened 2025-07-06 14:55:49 -07:00 by robert · 1 comment
Owner

Add the ability to load configuration from files so that the user isn't required to specify them each time, nor to remember to export the environment variables each time.

Configuration should be taken from these, in increasing order of priority:

  1. /etc/gt-tool.conf
  2. $XDG_CONFIG_DIRS/gt-tool.conf
  3. environment variables
  4. command-line flags

Points 3 and 4 are already satisfied by the current Clap CLI impl.

Add the ability to load configuration from files so that the user isn't *required* to specify them each time, nor to remember to export the environment variables each time. Configuration should be taken from these, in increasing order of priority: 1. `/etc/gt-tool.conf` 2. `$XDG_CONFIG_DIRS/gt-tool.conf` 3. environment variables 4. command-line flags Points 3 and 4 are already satisfied by the current Clap CLI impl.
robert added the Kind/Feature label 2025-07-06 14:55:49 -07:00
robert added this to the Configuration & Heuristics project 2025-07-06 15:00:51 -07:00
robert added reference configurability 2025-07-21 09:29:18 -07:00
robert moved this to Done in Configuration & Heuristics on 2025-07-21 09:29:29 -07:00
Author
Owner

Completed by commit 8cfc6605c9

Completed by commit 8cfc6605c95a9262f53427956ddd3082103843c8
Sign in to join this conversation.