Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ward
command
Command ward is the gitward CLI: it manages a single encrypted secret store at $GIT_ROOT/.gitward.json and fans its values out to leaf .env / .dev.vars files, capturing local edits back on commit via git hooks.
|
Command ward is the gitward CLI: it manages a single encrypted secret store at $GIT_ROOT/.gitward.json and fans its values out to leaf .env / .dev.vars files, capturing local edits back on commit via git hooks. |
|
internal
|
|
|
cli
Package cli defines the ward subcommands, all backed by internal/engine.
|
Package cli defines the ward subcommands, all backed by internal/engine. |
|
crypto
Package crypto implements gitward's envelope encryption.
|
Package crypto implements gitward's envelope encryption. |
|
engine
Package engine ties the store, crypto, leaf, and merge packages together into the operations the CLI and git hooks invoke: loading and decrypting the store, reading leaf files, running the 3-way merge against the base snapshot, and applying the results in either direction.
|
Package engine ties the store, crypto, leaf, and merge packages together into the operations the CLI and git hooks invoke: loading and decrypting the store, reading leaf files, running the 3-way merge against the base snapshot, and applying the results in either direction. |
|
gitutil
Package gitutil provides git repository helpers used to locate the store ($GIT_ROOT/.gitward.json) and the private base snapshot (.git/gitward/base.json), stage files, and test ignore rules.
|
Package gitutil provides git repository helpers used to locate the store ($GIT_ROOT/.gitward.json) and the private base snapshot (.git/gitward/base.json), stage files, and test ignore rules. |
|
leaf
Package leaf handles the mapping between store targets and the concrete dotfiles on disk, plus dotenv parsing/serialization.
|
Package leaf handles the mapping between store targets and the concrete dotfiles on disk, plus dotenv parsing/serialization. |
|
merge
Package merge implements the lossless 3-way reconciliation between the encrypted store (S), the leaf .env files on disk (L), and the base snapshot (B = the plaintext from the last successful sync, kept in .git/gitward).
|
Package merge implements the lossless 3-way reconciliation between the encrypted store (S), the leaf .env files on disk (L), and the base snapshot (B = the plaintext from the last successful sync, kept in .git/gitward). |
|
store
Package store defines the on-disk shape of the gitward secret store ($GIT_ROOT/.gitward.json) and the plaintext base snapshot (.git/gitward/base.json).
|
Package store defines the on-disk shape of the gitward secret store ($GIT_ROOT/.gitward.json) and the plaintext base snapshot (.git/gitward/base.json). |
Click to show internal directories.
Click to hide internal directories.