Hwaro::CLI::Commands::DeployCommand
Inherits Reference / Object
Constants
DESCRIPTION = "Deploy the built site using config.toml"
FLAGS = [FlagInfo.new(short: "-s", long: "--source", description: "Source directory to deploy (default: deployment.source_dir or public)", takes_value: true, value_hint: "DIR"), FlagInfo.new(short: nil, long: "--dry-run", description: "Show planned changes without writing"), FlagInfo.new(short: nil, long: "--confirm", description: "Ask for confirmation before deploying"), FlagInfo.new(short: nil, long: "--force", description: "Force upload/copy (ignore file comparisons)"), FlagInfo.new(short: nil, long: "--max-deletes", description: "Maximum number of deletes (default: deployment.maxDeletes or 256, -1 disables)", takes_value: true, value_hint: "N"), FlagInfo.new(short: nil, long: "--list-targets", description: "List configured deployment targets and exit"), JSON_FLAG, ENV_FLAG, QUIET_FLAG, HELP_FLAG]
Flags defined here are used both for OptionParser and completion generation
NAME = "deploy"
Single source of truth for command metadata
POSITIONAL_ARGS = ["target ..."]
POSITIONAL_CHOICES = [] of String
Class methods
metadata
SourceInstance methods
configured_targets_hint(env : String | Nil, config_path : String = "config.toml") : String
Builds the "Configured targets" hint appended to --help output.
Returns an empty string when no config.toml is present so help stays
unchanged outside of project directories. Parsing failures surface a
friendly note instead of aborting --help.
parse_options(args : Array(String)) : Tuple(Config::Options::DeployOptions, Bool, Bool)
Sourcerun(args : Array(String))
Source