class CLI::Formatter

Overview

Generates a formatted help template for command components.

Defined in:

cli/formatter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(command : Command, options : Options = Options.new) #

[View source]

Instance Method Detail

def format_arguments : String #

Returns a formatted string for arguments in the set command.


[View source]
def format_commands : String #

Returns a formatted string for subcommands (children) of the set command.


[View source]
def format_options : String #

Returns a formatted string for options in the set command.


[View source]
def generate : String #

Generates a help template for the set command. This will attempt to fill fields that have not been set in the command, for example, command usage strings.


[View source]