module TandaCLI::Configuration::Macros

Direct including types

Defined in:

tanda_cli/configuration/macros.cr

Macro Summary

Macro Detail

macro environment_property(name) #

Defines getter and setter methods for accessing Configuration::Environment methods based on Configuration#mode

Example:

environment_property site_prefix : String?

# expands to

def site_prefix : String | ::Nil
  current_environment.site_prefix
end

def site_prefix=(value : String | ::Nil)
  current_environment.site_prefix = value
end

[View source]