Expand description
Jen CLI launcher library.
Provides command execution strategies and application state management for the Jen framework.
§Examples
ⓘ
use jen_cli::{CommandFactory, run_node};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let command = CommandFactory::create_command("dev")?;
run_node(command.as_ref())?;
Ok(())
}Structs§
- Analyze
Command - Bundle analysis command.
- Build
Command - Static site build command.
- Command
Factory - Factory for creating command instances from string identifiers.
- DevCommand
- Development server command.
- Start
Command - Production server command.
Traits§
- Command
Strategy - Command execution strategy trait.
Functions§
- check_
node_ available - Checks if Node.js is available in the system PATH.
- run_
node - Executes a Node.js command with inherited stdout/stderr.