Skip to content

Add environment variable reader snippet #250

Open
@iluwatar

Description

@iluwatar

Description:

Provide a utility method that reads environment variables with an optional default value if the variable is missing.

Acceptance Criteria:

  • A new env var snippet has been added
  • Method could be something like getEnvOrDefault(String key, String defaultValue) which returns value or fallback
  • Test case handles missing and present environment variable cases

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions