Expand description
Core library for treeboot.
This crate contains the reusable worktree bootstrap logic. The treeboot
binary crate provides the command-line interface on top of this API.
Structs§
- Action
Plan - A validated set of file operations and commands ready for execution.
- Action
Plan Options - Options that affect declarative run planning.
- Command
Operation - A normalized command operation.
- Config
- Parsed and normalized treeboot config.
- Config
Options - Options for inspecting a treeboot config.
- Config
Runtime Options - Runtime options declared by a config file.
- Execute
Options - Options that control action plan execution.
- Execution
Report - Result summary for action plan execution.
- Executor
- Executes validated action plans.
- File
Operation - A normalized file operation.
- File
Operation Completion Options - Options for root-relative source completion.
- File
Operation Options - Options for running one manual file operation command.
- File
Operation Report - Result summary for a manual file operation invocation.
- Init
Options - Options for
treeboot init. - Init
Report - Result summary for
treeboot init. - Init
Script Discovery - Discovered treeboot init scripts for a worktree.
- Loaded
Config - Loaded treeboot config selected for a worktree.
- Manual
File Operation Options - Options for building manual file operation specs.
- Planned
Command - A validated command operation ready for execution.
- Planned
File Operation - A validated file operation ready for execution.
- RunOptions
- Options for running worktree bootstrap.
- RunReport
- Result summary for a
treeboot runinvocation. - Runtime
Option Overrides - Environment overrides for config runtime options.
- Source
Span - Byte and line location for a declaration in a config file.
- Status
Options - Options for inspecting treeboot discovery status.
- Status
Report - Result summary for a
treeboot statusinvocation. - Worktree
- Resolved Git worktree metadata used by treeboot operations.
- Worktree
Options - Options for discovering a Git worktree.
Enums§
- Command
Kind - Command invocation kind.
- Error
- Error type for
treeboot-coreoperations. - File
Operation Action - Completed action for a manual file operation invocation.
- File
Operation Kind - File operation kind.
- Init
Kind - Init file type to create.
- Init
Script Status - Init script discovery status for a worktree.
- Output
Event - A structured message produced during a treeboot operation.
- Plan
Origin - Source of a validated action plan.
- Planned
File Status - Execution status for a planned file operation.
- RunAction
- Completed action for a
treeboot runinvocation. - Symlink
Mode - Copy or sync symlink handling.
- Sync
Compare - Sync comparison mode.
Traits§
- Reporter
- Receives structured output events from core operations.
Functions§
- file_
operation_ source_ candidates - Returns source completion candidates relative to the resolved root checkout.
- init
- Creates a starter treeboot config or init script.
- inspect_
config - Parses, normalizes, and returns the selected config file.
- inspect_
status - Inspects worktree, root, init script, and config discovery status.
- run
- Runs worktree bootstrap according to the provided options.
- run_
file_ operation - Runs a manual copy, symlink, or sync file operation.
Type Aliases§
- Command
Spec - Raw command intent used to build an action plan.
- Config
Report - Result summary for a
treeboot configinvocation. - Environment
- Environment variable map built for scripts and configured commands.
- File
Operation Spec - Raw file operation intent used to build an action plan.
- Manifest
- Parsed treeboot manifest.
- Manifest
Options - Options for inspecting a treeboot manifest.
- Manifest
Report - Result summary for manifest inspection.
- Result
- Convenient result type used by
treeboot-core. - Runtime
Policy - Resolved runtime policy from defaults, config, environment, and CLI flags.