Skip to main content

Module init

Module init 

Source
Expand description

drep init - write drep.toml and install the git hooks.

Two things, in order: point drep at a model, and wire it into the repository’s commit/push flow. This is the only part of drep that can damage something, which is why every failure mode is spelled out in the submodules rather than collapsed into a single “best effort” call.

All output goes through a &mut dyn std::io::Write so the command is testable without spawning a subprocess.

Re-exports§

pub use hooks::HookKind;

Modules§

config_file
Render and write drep.toml.
gitignore
Adding drep.toml to the repository’s .gitignore.
hooks
drep init’s git-hook installer.
presets
Named LLM providers for drep init.
wizard
The interactive half of drep init.

Structs§

InitArgs

Functions§

run
Run the command, writing to stdout. Returns Ok(Exit::Clean) on success and Err(_) on any failure.
run_with
run_to, against a named auth store.