Util.Env (fnord v0.9.29)
View SourceUtilities for interpreting environment variables used in fnord.
Provide canonical parsing helpers so different runtime contexts treat environment values consistently (escript, mix run, CI, etc.).
Summary
Functions
Delete the environment variable.
Return true when the provided environment value is considered truthy.
Set the environment variable to the given value.
Functions
@spec cursor_rules_debug_enabled?() :: boolean()
@spec delete_env(binary()) :: :ok
Delete the environment variable.
Return true when the provided environment value is considered truthy.
Recognizes the common truthy values (case-insensitive): "1", "true", and "yes". Returns false for nil, empty strings, and other values.
@spec mcp_debug_enabled?() :: boolean()
Set the environment variable to the given value.