feat(config): config 디렉터리 기반 설정 관리 (--config-path/--env-file, trex-orb-v1 정합, BAT-026)
REQ-048/010 change-req. `--config` 를 이름으로 해석 + `--config-path <dir>` (기본 ./config) + resolve_config_toml(슬래시 포함 값은 하위호환 명시 경로). `.env` 를 config-dir 결정적 해석(--env-file 우선, 없으면 <config_dir>/.env, CWD 무관) + config/.env.example + .gitignore config/* 허용목록. 운영자 CLI 도 --config-path/--env-file 동일 적용. from_env() legacy 루트 .env 폴백 유지로 완전 하위호환. 단위 23 + 전체 375 passed, ruff clean, 라이브 스모크(name·path 동일). REQ-048/010 → Implemented. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+7
-4
@@ -4,8 +4,11 @@ __pycache__/
|
||||
*.egg-info/
|
||||
.pytest_cache/
|
||||
/.env
|
||||
**/.env
|
||||
/.vscode/
|
||||
# BAT-013 / REQ-048: per-instance TOML configs hold instance_key + portfolio_hub_token
|
||||
# (secrets) — never commit. The tracked example below is exempt.
|
||||
/config/*.toml
|
||||
!/config/instance.example.toml
|
||||
# REQ-048/010 CHG-20260609-01 (trex-orb-v1 aligned): config/ holds real per-instance
|
||||
# TOML configs + the shared .env (secrets) — never commit. Only example templates
|
||||
# (*.example.toml, .env.example) are tracked.
|
||||
/config/*
|
||||
!/config/*.example.toml
|
||||
!/config/.env.example
|
||||
|
||||
Reference in New Issue
Block a user