Xamal.Secrets (xamal v0.3.0)

Copy Markdown View Source

Loads secrets from .xamal/secrets dotenv files.

Supports:

  • .xamal/secrets-common (shared across destinations)
  • .xamal/secrets (or .xamal/secrets.<destination>)
  • Inline command substitution via $(...) syntax

Command substitutions are executed in parallel for performance.

Summary

Functions

fetch(secrets, key)

get(secrets, key, default \\ nil)

has_key?(secrets, key)

new(opts \\ [])

to_map(secrets)