Skip to main content

Module init

Module init 

Source
Expand description

Orchestration for krypt init.

Clones a remote dotfiles repo (or creates an empty local stub) into the configured repo path, then writes the tool config.

§HTTPS-only note

Cloning uses gix’s blocking HTTP transport with rustls — no system git required, no OpenSSL, no libssh2. The trade-off is that only HTTPS URLs are supported (gix 0.83 has no SSH transport). If your remote is SSH-only, clone manually with git clone first and then run krypt init --repo-path <path> without a URL to write the tool config.

Structs§

InitOpts
Inputs to init.
InitReport
Summary returned by a successful init.

Enums§

InitError
Errors from init.

Functions§

init
Initialise a dotfiles repo and write the tool config.