class

Hwaro::CLI::CommandInfo

Inherits Reference / Object

Command information including subcommands and flags

Constructors

new(name : String, description : String, flags : Array(FlagInfo) = [] of FlagInfo, subcommands : Array(CommandInfo) = [] of CommandInfo, positional_args : Array(String) = [] of String, positional_choices : Array(String) = [] of String)
Source

Instance methods

description
Source
description=(description : String)
Source
flags
Source
flags=(flags : Array(FlagInfo))
Source
name
Source
name=(name : String)
Source
positional_args
Source
positional_args=(positional_args : Array(String))
Source
positional_choices
Source
positional_choices=(positional_choices : Array(String))
Source
subcommands
Source
subcommands=(subcommands : Array(CommandInfo))
Source