Expand description
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 messageslogger- Structured logging with tracingui- Terminal UI utilities for progress bars and formatted outputcommands- 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 fob_cli::{error::Result, logger};
fn main() -> Result<()> {
logger::init_logger(false, false, false);
// CLI command implementations...
Ok(())
}Re-exports§
pub use error::BuildError;pub use error::CliError;pub use error::ConfigError;pub use error::Result;pub use error::ResultExt;
Modules§
- cli
- Command-line interface definition for Fob bundler.
- commands
- Command implementations for the Joy CLI.
- config
- Configuration system for Fob bundler with multi-source loading.
- dev
- Development server module.
- error
- Comprehensive error handling for the Joy CLI.
- logger
- Logging infrastructure for the Joy CLI.
- ui
- Terminal UI utilities for progress bars and formatted output.