[go: up one dir, main page]

Module envfile

Module envfile 

Source
Expand description

Helpers for importing/exporting .env-style files to and from the vault.

Structs§

ImportStats

Functions§

export_env_file
Export vault contents to a .env-style file. Keys are sorted for stability. Refuses to overwrite unless force is true. If dry_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 overwrite to replace existing values. Honors dry_run by 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.