abstract class CB::Action

Overview

Action is the base class for all actions performed by cb.

Direct Known Subclasses

Defined in:

cb/action.cr

Constant Summary

Error = Program::Error
Log = ::Log.for("Action")

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(input : IO = STDIN, output : IO = STDOUT) #

[View source]

Macro Detail

macro bool_setter(property) #

Note: unlike the other macros, this one does not create a nilable boolean, and instead creates one that defaults to false


[View source]
macro bool_setter?(property) #

Nilable boolean setter. This is useful for fields where nil can have a meaningful value beyond being falesy.


[View source]
macro cluster_identifier_setter(property) #

[View source]
macro eid_setter(property, description = nil) #

[View source]
macro format_setter(property) #

[View source]
macro format_setter?(property) #

[View source]
macro i32_setter(property) #

[View source]
macro ident_setter(property) #

For simple identifiers such as region names, or plan names where we expect only lowercase, numbers, and -


[View source]
macro identifier_setter(property) #

[View source]
macro name_setter(property) #

Non-nilable name setter. Used for name associated with API resources.


[View source]
macro name_setter?(property) #

Nilable name setter. Used for name associated with API resources.


[View source]
macro role_setter(property) #

[View source]
macro role_setter?(property) #

[View source]
macro time_setter(property) #

[View source]

Instance Method Detail

def call #

[View source]
def input : IO #

[View source]
def input=(input : IO) #

[View source]
def output : IO #

[View source]
def output=(output : IO) #

[View source]