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§
- Adopt
Edits Opts - Options for
adopt_edits. - Adopt
Edits Report - Result of a successful
adopt_editscall. - Adopt
Opts - Options for
adopt. - Adopt
Report - Result of a successful
adoptcall.
Enums§
- Adopt
Error - Errors from
adoptoradopt_edits.
Functions§
- adopt
- Import
opts.dstinto the repo and record it in the manifest. - adopt_
edits - For every drifted manifest entry, copy
dstback into<repo>/<src>and refresh the manifest hashes.