Fob CLI - Modern JavaScript bundler with Rust performance.
This crate provides the command-line interface for the Fob bundler, exposing
all functionality from fob-bundler through an intuitive CLI with excellent
error messages and user experience.
Architecture
The CLI is organized into several key modules:
- [
error] - Comprehensive error types with actionable messages - [
logger] - Structured logging with tracing - [
ui] - Terminal UI utilities for progress bars and formatted output commands- Individual CLI command implementationsconfig- Configuration file handlingserver- Development server
Features
- Type-safe error handling: Uses
thiserrorfor structured errors - Structured logging: Built on
tracingfor better debugging - Beautiful terminal UI: Progress bars, colors, and formatting
- File watching: Automatic rebuilds on file changes
- Configuration profiles: Environment-specific settings
Example
use ;