class

Hwaro::CLI::Commands::CompletionCommand

Inherits Reference / Object

Constants

DESCRIPTION = "Generate shell completion scripts"
FLAGS = [HELP_FLAG]

Flags defined here are used both for OptionParser and completion generation

NAME = "completion"

Single source of truth for command metadata

POSITIONAL_ARGS = ["shell"]
POSITIONAL_CHOICES = ["bash", "zsh", "fish"]
SHELLS = ["bash", "zsh", "fish"]

Class methods

all_commands

Get all command metadata dynamically from CommandRegistry

Source
metadata
Source

Instance methods

run(args : Array(String))
Source