Skip to main content

Crate treeboot_core

Crate treeboot_core 

Source
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§

ActionPlan
A validated set of file operations and commands ready for execution.
ActionPlanOptions
Options that affect declarative run planning.
CheckOptions
Options for checking treeboot bootstrap behavior.
CheckReport
Result summary for a treeboot check invocation.
CommandOperation
A normalized command operation.
Config
Parsed and normalized treeboot config.
ConfigOptions
Options for inspecting a treeboot config.
ConfigRuntimeOptions
Runtime options declared by a config file.
Diagnostic
One doctor diagnostic.
DoctorOptions
Options for diagnosing treeboot discovery and validation.
DoctorReport
Result summary for a treeboot doctor invocation.
EnvOptions
Options for inspecting the treeboot child environment.
EnvReport
Result summary for a treeboot env invocation.
EnvironmentInput
Explicit environment variable input used while resolving treeboot behavior.
ExecuteOptions
Options that control action plan execution.
ExecutionReport
Result summary for action plan execution.
Executor
Executes validated action plans.
FileOperation
A normalized file operation.
FileOperationCompletionOptions
Options for root-relative source completion.
FileOperationOptions
Options for running one manual file operation command.
FileOperationReport
Result summary for a manual file operation invocation.
FileOperationSummary
Counts produced by one top-level file operation.
IgnoredInitScript
Existing init script path that treeboot skipped during discovery.
InitOptions
Options for treeboot init.
InitReport
Result summary for treeboot init.
InitScriptDiscovery
Discovered treeboot init scripts for a worktree.
LoadedConfig
Loaded treeboot config selected for a worktree.
ManualFileOperationOptions
Options for building manual file operation specs.
PlannedCommand
A validated command operation ready for execution.
PlannedFileOperation
A validated file operation ready for execution.
ResolvedRuntimePolicy
Runtime policy after config defaults, environment, and CLI are merged.
RunOptions
Options for running worktree bootstrap.
RunReport
Result summary for a treeboot run invocation.
RuntimeOptionOverrides
Environment overrides for config runtime options.
RuntimePolicy
Runtime policy resolved from environment and CLI input.
SourceSpan
Byte and line location for a declaration in a config file.
StatusOptions
Options for inspecting treeboot discovery status.
StatusReport
Result summary for a treeboot status invocation.
StatusSnapshotReport
Serializable result summary for a treeboot status invocation.
VersionInfo
treeboot version metadata.
Worktree
Resolved Git worktree metadata used by treeboot operations.
WorktreeOptions
Options for discovering a Git worktree.
WorktreeSnapshot
Serializable worktree context snapshot for reports.

Enums§

CheckAction
Completed action for a treeboot check invocation.
CommandKind
Command invocation kind.
DiagnosticStatus
Diagnostic status.
Error
Error type for treeboot-core operations.
FileOperationAction
Completed action for a manual file operation invocation.
FileOperationKind
File operation kind.
InitKind
Init file type to create.
InitScriptStatus
Init script discovery status for a worktree.
MetadataField
Metadata field ignored by copy and sync operations.
OutputEvent
A structured message produced during a treeboot operation.
PlanOrigin
Source of a validated action plan.
PlanWarning
Non-fatal warning produced while building an action plan.
PlannedFileStatus
Execution status for a planned file operation.
RunAction
Completed action for a treeboot run invocation.
SymlinkMode
Copy or sync symlink handling.
SyncCompare
Sync comparison mode.

Constants§

SPEC_VERSION
treeboot spec version implemented by this crate.
TREEBOOT_PACKAGE
treeboot package name used for product-level version reporting.
TREEBOOT_VERSION
treeboot package version.

Traits§

Reporter
Receives structured output events from core operations.

Functions§

check
Checks treeboot bootstrap behavior without side effects.
config_schema_json
Returns the bundled treeboot config JSON Schema.
diagnose
Diagnoses treeboot discovery and validation without side effects.
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_env
Inspects the treeboot child environment.
inspect_status
Inspects worktree, root, init script, and config discovery status.
inspect_status_snapshot
Inspects worktree, root, init script, and config discovery status as a serializable snapshot.
run
Runs worktree bootstrap according to the provided options.
run_file_operation
Runs a manual copy, symlink, or sync file operation.
treeboot_version_info
Returns product-level treeboot version metadata.
treeboot_version_summary
Returns the treeboot version summary used by CLI version flags.
version_info
Returns version metadata for a package implementing treeboot.

Type Aliases§

CommandSpec
Raw command intent used to build an action plan.
ConfigReport
Result summary for a treeboot config invocation.
Environment
Environment variable map built for scripts and configured commands.
FileOperationSpec
Raw file operation intent used to build an action plan.
Manifest
Parsed treeboot manifest.
ManifestOptions
Options for inspecting a treeboot manifest.
ManifestReport
Result summary for manifest inspection.
Result
Convenient result type used by treeboot-core.