Skip to main content

Crate jen_launcher

Crate jen_launcher 

Source
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§

AnalyzeCommand
Bundle analysis command.
BuildCommand
Static site build command.
CommandFactory
Factory for creating command instances from string identifiers.
DevCommand
Development server command.
StartCommand
Production server command.

Traits§

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