Skip to content

Add a --env-file flag #16

Description

@willkg

Config currently reads ./.env in the working directory only. Add a --env-file PATH flag to point at an explicit env file, and consider searching parent directories (as python-dotenv did) so the tool works from subdirectories of a docs repo.

Precedence remains flag > environment variable > .env file; --env-file just changes which file is read. Ref: internal/client.Resolve / loadDotenv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions