Workspace - Command-Line Tool Suite

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).

View on GitHub

Development Setup

  1. Fork the repository
  2. Clone your fork:
git clone https://github.com/your-username/workspace
  1. Build the project:
cargo build

Testing

Run the full test suite:

cargo test

Contribution Guidelines

Code Structure

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