class

Hwaro::CLI::Commands::Tool::DeadlinkCommand

Inherits Reference / Object

Constants

DEFAULT_CONCURRENCY = 8
DEFAULT_TIMEOUT = 10
DESCRIPTION = "Check for dead links in content files"
FLAGS = [CONTENT_DIR_FLAG, FlagInfo.new(short: nil, long: "--timeout", description: "HTTP request timeout in seconds (default: 10)", takes_value: true, value_hint: "SECONDS"), FlagInfo.new(short: nil, long: "--concurrency", description: "Max concurrent requests (default: 8)", takes_value: true, value_hint: "N"), FlagInfo.new(short: nil, long: "--external-only", description: "Check external links only"), FlagInfo.new(short: nil, long: "--internal-only", description: "Check internal links only"), JSON_FLAG, HELP_FLAG]

Flags defined here are used both for OptionParser and completion generation

NAME = "check-links"

Single source of truth for command metadata

POSITIONAL_ARGS = [] of String
POSITIONAL_CHOICES = [] of String

Class methods

metadata
Source

Instance methods

run(args : Array(String))
Source

Nested types