class TandaCLI::Configuration

Defined in:

tanda_cli/configuration.cr
tanda_cli/configuration/abstract_file.cr
tanda_cli/configuration/file.cr
tanda_cli/configuration/macros.cr
tanda_cli/configuration/serialisable.cr
tanda_cli/configuration/serialisable/access_token.cr
tanda_cli/configuration/serialisable/environment.cr
tanda_cli/configuration/serialisable/organisation.cr

Constant Summary

PRODUCTION = "production"
STAGING = "staging"

Constructors

Instance Method Summary

Constructor Detail

def self.init(file : Configuration::AbstractFile, display : Display) : Configuration #

[View source]
def self.new(file : Configuration::AbstractFile, serialisable : TandaCLI::Configuration::Serialisable = Serialisable.new) #

[View source]

Instance Method Detail

def access_token(*args, **options) #

[View source]
def access_token(*args, **options, &) #

[View source]
def api_url : String | Error::InvalidURL #

[View source]
def clockin_photo_path(*args, **options) #

[View source]
def clockin_photo_path(*args, **options, &) #

[View source]
def clockin_photo_path=(arg) #

[View source]
def current_environment(*args, **options) #

[View source]
def current_environment(*args, **options, &) #

[View source]
def current_organisation!(*args, **options) #

[View source]
def current_organisation!(*args, **options, &) #

[View source]
def current_organisation?(*args, **options) #

[View source]
def current_organisation?(*args, **options, &) #

[View source]
def mode(*args, **options) #

[View source]
def mode(*args, **options, &) #

[View source]
def mode=(arg) #

[View source]
def organisations(*args, **options) #

[View source]
def organisations(*args, **options, &) #

[View source]
def organisations=(arg) #

[View source]
def overwrite!(site_prefix : String, email : String, access_token : Types::AccessToken) #

[View source]
def pretty_start_of_week(*args, **options) #

[View source]
def pretty_start_of_week(*args, **options, &) #

[View source]
def reset_environment!(*args, **options) #

[View source]
def reset_environment!(*args, **options, &) #

[View source]
def save! #

[View source]
def site_prefix(*args, **options) #

[View source]
def site_prefix(*args, **options, &) #

[View source]
def site_prefix=(arg) #

[View source]
def staging?(*args, **options) #

[View source]
def staging?(*args, **options, &) #

[View source]
def start_of_week(*args, **options) #

[View source]
def start_of_week(*args, **options, &) #

[View source]
def start_of_week=(arg) #

[View source]
def treat_paid_breaks_as_unpaid?(*args, **options) #

[View source]
def treat_paid_breaks_as_unpaid?(*args, **options, &) #

[View source]