class Build::Commands::Base

Direct Known Subclasses

Defined in:

commands/base.cr

Instance Method Summary

Instance Method Detail

def api : ::Build::DefaultApi #

[View source]
def buildpacks_api : ::Build::BuildpacksApi #

[View source]
def default_region : String #

[View source]
def execute(input : ACON::Input::Interface, output : ACON::Output::Interface) : Athena::Console::Command::Status #
Description copied from class Athena::Console::Command

Executes the command with the provided input and output, returning the status of the invocation via ACON::Command::Status.

This method MUST be defined and implement the business logic for the command.


[View source]
def next_cursor(headers : Hash(String, Array(String) | String)) : String | Nil #

Cursor from an RFC 8288 Link header's rel="next" URL, or nil on the last page.


[View source]
def print_api_error(output : ACON::Output::Interface, ex : Exception, local_server_hint : Bool = true) : Nil #

[View source]
def print_api_request_failed(output : ACON::Output::Interface, ex : Exception, local_server_hint : Bool = true) : Nil #

[View source]
def print_error(output : ACON::Output::Interface, message : String) : Nil #

[View source]
def print_table(output : ACON::Output::Interface, headers : Tuple, rows : Array(Tuple)) #

[View source]
def progress(message : String) : Nil #

Transient progress line on STDERR, only when someone is watching.


[View source]
def progress_done : Nil #

[View source]
def t(message_key : String | Symbol, params : Hash | NamedTuple | Nil = nil) : String #

[View source]
def t(message_key : String | Symbol, **kwargs) : String #

[View source]
def token : String | Nil #

[View source]