treeboot-core
Reusable Rust library for bootstrapping Git worktrees from a repo-local
treeboot setup contract.
This crate contains the public API used by the treeboot CLI. It handles Git
worktree discovery, init script discovery, declarative config parsing,
validation, action planning, file operation execution, command execution, and
structured output events.
This crate exposes the same workflow as typed Rust APIs for callers that want to embed treeboot behavior directly.
API Shape
Use command-shaped facade functions when you want the same behavior as the CLI:
use ;
Use lower-level types when embedding pieces of the workflow:
use ;
The crate exposes typed errors through treeboot_core::Error and avoids
CLI-specific dependencies.
Relationship to treeboot
treeboot-core is the reusable library crate. The treeboot package provides
the command-line interface and user-facing reporting on top of this API.
See the repository for project details.
License
MIT