Module cli

Module cli 

Source
Expand description

Command-line interface definition for Fob bundler.

This module defines the complete CLI structure using clap v4’s derive macros. It provides type-safe argument parsing with comprehensive validation and clear error messages.

§Command Structure

  • fob build - Bundle JavaScript/TypeScript with full configuration
  • fob dev - Development server with watch mode (planned)
  • fob init - Project scaffolding (planned)
  • fob check - Configuration validation (planned)

Re-exports§

pub use enums::*;

Modules§

enums

Structs§

BuildArgs
Arguments for the build command
CheckArgs
Arguments for the check command (configuration validation)
Cli
Fob - A modern JavaScript/TypeScript bundler
DevArgs
Arguments for the dev command (development server)
InitArgs
Arguments for the init command (project scaffolding)

Enums§

Command
Available Fob subcommands

Functions§

parse_global
Parse and validate a global variable name for IIFE bundles.