rust-cli / rust-cli/config-rs

Overwrite list attribute via env. variable

Open
#296 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-env
Dominant language
Rust
Stars
3.2k
Forks
265
Avg merge
2h 42m
Merged PRs (30d)
4

Description

Considering this hierachical-env config with the following YML config

list_config:
  - id: first
  - id: second

How could I append a field to the first list entry via an environment variable? Could I do something like setting env. variable app_list_config[0].second_field to value?

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 with examples/hierarchical-env/settings.rs and the environment-variable handling around the shown list_config structure. Investigate whether a variable such as app_list_config[0].second_field can address a list entry, and compare the behavior with the YML example. Done means the supported behavior or limitation is established and covered by the relevant project changes or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.