Expand description
Helpers for importing/exporting .env-style files to and from the vault.
Structs§
Functions§
- export_
env_ file - Export vault contents to a .env-style file. Keys are sorted for stability.
Refuses to overwrite unless
forceis true. Ifdry_run, no file is created but overwrite checks still apply. - import_
entries - Merge parsed .env entries into the vault. By default keeps existing keys;
set
overwriteto replace existing values. Honorsdry_runby not mutating the vault while still returning the counters that would apply. - parse_
env_ file - Parse a .env-style file into key/value pairs. Supports
KEY=VALUE, skips blank lines and lines starting with#. Errors on malformed rows.