abstract class CliMate::Command

Included Modules

Direct Known Subclasses

Defined in:

cli.cr

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from module CliMate::CommonDeclarations

commands commands, commands=(commands) commands=, default default, name name, parser_options(parser) parser_options

Instance methods inherited from module CliMate::Helpers

ask ask, blurt(*args) blurt, say(*args) say, silent(value) silent, stop(code = 1) stop

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(runner : CliMate::Runner) #

[View source]

Instance Method Detail

def category #

[View source]
def desc #

[View source]
def execute(opts : Nil | CliMate::Options, args) #

[View source]
def prepare #

[View source]
def run(opts, args) #

[View source]
def show_help #

[View source]
def show_subcommands_help(indent, margin) #

[View source]
def show_usage #

[View source]
def usage #

[View source]

Macro Detail

macro category(text) #

[View source]
macro desc(text) #

[View source]
macro usage(text) #

[View source]