class

CB::Action

Inherits Reference / Object

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

Constants

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

Constructors

new(input : IO = STDIN, output : IO = STDOUT)
Source

Instance methods

call
Source
input
Source
input=(input : IO)
Source
output
Source
output=(output : IO)
Source

Macros

bool_setter(property)

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

Source
bool_setter?(property)

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

Source
cluster_identifier_setter(property)
Source
eid_setter(property, description = nil)
Source
format_setter(property)
Source
format_setter?(property)
Source
i32_setter(property)
Source
ident_setter(property)

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

Source
identifier_setter(property)
Source
name_setter(property)

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

Source
name_setter?(property)

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

Source
role_setter(property)
Source
role_setter?(property)
Source
time_setter(property)
Source