Hwaro::CLI::Commands::ToolCommand
Inherits Reference / Object
Constants
CATEGORIES = {"Content" => ["list", "convert", "check-links", "stats", "validate", "unused-assets"], "Site" => ["platform", "doctor", "import", "export", "agents-md"]}
Category display order and membership for help output
DESCRIPTION = "Utility tools (stats, validate, export, doctor, ...)"
FLAGS = [QUIET_FLAG, HELP_FLAG]
HIDDEN = Set {"ci"}
Hidden from help but still executable (e.g. deprecated commands)
NAME = "tool"
Single source of truth for command metadata
POSITIONAL_ARGS = [] of String
POSITIONAL_CHOICES = [] of String
Class methods
metadata
Sourcereport_unknown_subcommand(subcommand : String, args : Array(String) = [] of String)
Raise a classified usage error for an unknown tool <subcommand>,
mirroring the top-level Runner behavior. The Did you mean …
suggestion is printed to stderr in text mode only; the final
Error [HWARO_E_USAGE]: … line (and the help hint) come from the
Runner's shared emit_hwaro_error path.
subcommands
SourceInstance methods
run(args : Array(String))
Source