Skip to content

feat: add first-class dotenv support - #2

Merged
FFFFFFpy merged 5 commits into
mainfrom
feat/dotenv-support
Jul 10, 2026
Merged

FFFFFFpy merged 5 commits into
mainfrom
feat/dotenv-support

Conversation

@FFFFFFpy

Copy link
Copy Markdown
Owner

Summary

Make .env configuration explicit and reliable so LLM flags do not need to be repeated for every compile.

Changes

  • add --env-file PATH to compile, compile-dir, and test-llm
  • support OKF_ENV_FILE
  • discover .env in CWD, then beside the input Markdown/input directory
  • preserve precedence: CLI > process environment > dotenv > defaults
  • load exactly one dotenv file and fail on an explicitly missing path
  • document setup using the committed .env.example
  • add dotenv discovery, precedence, and CLI tests
  • bump version to 0.1.1

Validation

CI covers Python 3.10 and 3.13 with Ruff and pytest.

@FFFFFFpy
FFFFFFpy merged commit 0d1178c into main Jul 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant