Workspace is a tool suite for file operations, version management, and development workflow automation. Includes refac (string replacement), scrap (local trash folder), unscrap (file restoration), and state (automatic versioning).
git clone https://github.com/your-username/workspace
cargo build
Run the full test suite:
cargo test
src/
├── bin/
│ └── wsb.rs # CLI entry point (clap parser, command dispatch)
├── lib.rs # Library root
├── refac/ # Refactor tool (string replacement)
│ ├── mod.rs
│ └── binary_detector.rs
├── state/ # Version management
│ ├── mod.rs
│ ├── state_common.rs # Version calculation, project file updates
│ ├── templates.rs # Tera template manager
│ └── wstemplate.rs # Cross-project .wstemplate engine
├── workspace_state.rs # Per-project state (WstemplateEntry, .wsb/state.json)
├── entities/ # Entity system (features, tasks, directives, etc.)
├── ldiff/ # Line difference visualizer
├── logging.rs # Structured logging
├── code_analysis/ # AST-based code analysis
└── interactive_tree.rs # Interactive tree display