Skip to content

Commit ded63b0

Browse files
authored
✨ feat(cli): add --envfile option for runtime environment switching (#197)
Users needed a way to switch between different environment configurations without modifying config files. This is particularly useful when testing against different environments (dev, staging, prod) or when developers need local overrides without changing version-controlled configuration. Implemented a --envfile CLI argument with two modes. Override mode (--envfile PATH) replaces all configured env_files, while extend mode (--envfile +PATH) adds to them. The CLI file always loads last in extend mode, ensuring its variables take precedence. Unlike config-based env_files which silently skip missing files, CLI files must exist to fail fast on typos or incorrect paths. Restructured README following Diátaxis framework to separate tutorial content (quick start), how-to guides (task-focused), reference (complete API), and explanation (conceptual understanding). This makes the documentation more navigable and helps users find what they need based on their goal. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
1 parent 973033e commit ded63b0

File tree

7 files changed

+406
-198
lines changed

7 files changed

+406
-198
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ repos:
1414
hooks:
1515
- id: codespell
1616
additional_dependencies: ["tomli>=2.4"]
17-
- repo: https://github.com/tox-dev/tox-ini-fmt
18-
rev: "1.7.1"
17+
- repo: https://github.com/tox-dev/tox-toml-fmt
18+
rev: "v1.6.0"
1919
hooks:
20-
- id: tox-ini-fmt
21-
args: ["-p", "fix"]
20+
- id: tox-toml-fmt
2221
- repo: https://github.com/tox-dev/pyproject-fmt
2322
rev: "v2.16.0"
2423
hooks:

0 commit comments

Comments
 (0)