worktree_setup_operations 0.2.0

File operations for worktree-setup
Documentation

File operations for worktree-setup.

This crate provides file system operations for setting up worktrees:

  • Symlink creation
  • File and directory copying
  • Configuration application
  • Operation planning with file counts

Example

use worktree_setup_operations::{plan_operations, execute_operation};

// Plan operations first (for progress display)
let operations = plan_operations(&config, &main_path, &target_path, &options)?;

// Execute each operation with progress callback
for op in &operations {
    execute_operation(op, |completed, total| {
        println!("{}/{} files", completed, total);
    })?;
}