Skip to main content

Module adopt

Module adopt 

Source
Expand description

krypt adopt and krypt adopt-edits — import existing dotfiles into the repo.

adopt copies a file that already lives at its deployed location (dst) into the repo at the derived or user-supplied src path, then records a manifest entry. The original file at dst is left untouched.

adopt_edits scans every manifest entry for drift and, for each drifted entry, copies the current dst bytes back into <repo>/<src> and refreshes the manifest hashes. This is the “I edited my deployed dotfiles in-place; sync those edits back to the repo” workflow.

Structs§

AdoptEditsOpts
Options for adopt_edits.
AdoptEditsReport
Result of a successful adopt_edits call.
AdoptOpts
Options for adopt.
AdoptReport
Result of a successful adopt call.

Enums§

AdoptError
Errors from adopt or adopt_edits.

Functions§

adopt
Import opts.dst into the repo and record it in the manifest.
adopt_edits
For every drifted manifest entry, copy dst back into <repo>/<src> and refresh the manifest hashes.