Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
envkeep
command
Command envkeep keeps .env files in sync across the git worktrees of one repository.
|
Command envkeep keeps .env files in sync across the git worktrees of one repository. |
|
internal
|
|
|
buildinfo
Package buildinfo carries build-time metadata for the envkeep CLI.
|
Package buildinfo carries build-time metadata for the envkeep CLI. |
|
cli
Package cli wires the pure layers (env, envfile, vault, state, config) together with git discovery to implement the status/push/pull/check commands.
|
Package cli wires the pure layers (env, envfile, vault, state, config) together with git discovery to implement the status/push/pull/check commands. |
|
config
Package config reads the per-repo envkeep configuration, stored at <common-dir>/envkeep/config as flat KEY=VALUE and shared by every worktree of the repo.
|
Package config reads the per-repo envkeep configuration, stored at <common-dir>/envkeep/config as flat KEY=VALUE and shared by every worktree of the repo. |
|
env
Package env defines Name, the identifier for a named environment (local / homo / prod, …).
|
Package env defines Name, the identifier for a named environment (local / homo / prod, …). |
|
envfile
Package envfile parses, mutates, and renders .env files while preserving key order and comments (see docs/DECISIONS.md D11), and provides the pure merge / diff / 3-way classification logic the sync commands build on (D8, D5).
|
Package envfile parses, mutates, and renders .env files while preserving key order and comments (see docs/DECISIONS.md D11), and provides the pure merge / diff / 3-way classification logic the sync commands build on (D8, D5). |
|
fsutil
Package fsutil holds small filesystem helpers shared across envkeep.
|
Package fsutil holds small filesystem helpers shared across envkeep. |
|
git
Package git wraps the handful of git queries envkeep needs, always shelling out to the real git binary (envkeep's behavior depends on real git-common-dir resolution, so this layer is not mocked — see docs/DECISIONS.md D18).
|
Package git wraps the handful of git queries envkeep needs, always shelling out to the real git binary (envkeep's behavior depends on real git-common-dir resolution, so this layer is not mocked — see docs/DECISIONS.md D18). |
|
hook
Package hook emits the shell snippet that warns, on directory change, when the current worktree's env file has drifted from the vault.
|
Package hook emits the shell snippet that warns, on directory change, when the current worktree's env file has drifted from the vault. |
|
state
Package state stores each worktree's per-worktree sync marker: the base — the shared env content at the worktree's last sync — plus the file mtimes seen then (for the cheap mtime cache).
|
Package state stores each worktree's per-worktree sync marker: the base — the shared env content at the worktree's last sync — plus the file mtimes seen then (for the cheap mtime cache). |
|
vault
Package vault stores the shared env values for a repo.
|
Package vault stores the shared env values for a repo. |
Click to show internal directories.
Click to hide internal directories.





