Skip to main content

run_init

Function run_init 

Source
pub fn run_init() -> Result<(), PawError>
Expand description

Runs the git paw init command.

Creates .git-paw/ directory structure, generates a default config, installs the bundled sweep.sh supervisor helper at <repo>/.git-paw/scripts/sweep.sh (executable mode 0o755 on Unix), and manages .gitignore. The script is overwritten on every invocation so re-running git paw init picks up updates that ship with new versions of the binary. Idempotent for the other side effects — running twice produces identical results for the directory tree, config.toml, and .gitignore.