//! [`Materializer`] — write a resolved environment to a `.env` file.
use BTreeMap;
use Path;
use crateMaterializerError;
/// Produce a `.env` file from a resolved key/value environment.
///
/// "Resolved" means the caller has already fetched values from the metadata
/// store and the secret store and applied the profile's overrides. The
/// materializer's job is purely textual: emit a well-formed `.env`, attach the
/// "generated by evault" header, and update the project `.gitignore` so the
/// file is never committed.