Hwaro::CLI::Commands::BuildCommand
Inherits Reference / Object
Constants
DESCRIPTION = "Build the project"
FLAGS = [INPUT_DIR_FLAG, FlagInfo.new(short: "-o", long: "--output", description: "Output directory (default: public)", takes_value: true, value_hint: "DIR"), BASE_URL_FLAG, ENV_FLAG, DRAFTS_FLAG, INCLUDE_EXPIRED_FLAG, INCLUDE_FUTURE_FLAG, MINIFY_FLAG, FlagInfo.new(short: nil, long: "--no-parallel", description: "Disable parallel file processing"), JOBS_FLAG, FlagInfo.new(short: nil, long: "--cache", description: "Enable build caching (skip unchanged files)"), FlagInfo.new(short: nil, long: "--full", description: "Force a complete rebuild (ignore cache)"), FlagInfo.new(short: nil, long: "--stream", description: "Enable streaming build to reduce memory usage"), FlagInfo.new(short: nil, long: "--memory-limit", description: "Memory limit for streaming build (e.g. 2G, 512M)", takes_value: true, value_hint: "SIZE"), FlagInfo.new(short: nil, long: "--skip-highlighting", description: "Disable syntax highlighting"), SKIP_OG_IMAGE_FLAG, SKIP_IMAGE_PROCESSING_FLAG, SKIP_CACHE_BUSTING_FLAG, VERBOSE_FLAG, QUIET_FLAG, PROFILE_FLAG, DEBUG_FLAG, JSON_FLAG, HELP_FLAG]
Flags defined here are used both for OptionParser and completion generation
NAME = "build"
Single source of truth for command metadata
POSITIONAL_ARGS = [] of String
POSITIONAL_CHOICES = [] of String
Class methods
metadata
SourceInstance methods
parse_options(args : Array(String)) : Tuple(Tuple(Config::Options::BuildOptions, Bool), String | Nil, Bool)
Sourcerun(args : Array(String))
Source