Class: Dsu::BaseCLI

Inherits:
Thor
  • Object
show all
Includes:
Support::ColorThemable, Support::CommandHelpColorizable, Support::CommandHookable, Support::TimesSortable
Defined in:
lib/dsu/base_cli.rb

Direct Known Subclasses

CLI, Subcommands::BaseSubcommand

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Support::TimesSortable

#sorted_dsu_times_for, #times_for, #times_sort

Methods included from Support::CommandHookable

included

Methods included from Support::CommandHelpColorizable

included

Methods included from Support::ColorThemable

apply_theme, #prompt_with_options

Constructor Details

#initialize(*args) ⇒ BaseCLI

Returns a new instance of BaseCLI.



28
29
30
31
32
# File 'lib/dsu/base_cli.rb', line 28

def initialize(*args)
  super

  @configuration = Models::Configuration.new
end

Class Method Details

.date_option_descriptionObject



39
40
41
# File 'lib/dsu/base_cli.rb', line 39

def date_option_description
  I18n.t('options.date_option_description')
end

.exit_on_failure?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/dsu/base_cli.rb', line 35

def exit_on_failure?
  false
end

.mnemonic_option_descriptionObject



43
44
45
# File 'lib/dsu/base_cli.rb', line 43

def mnemonic_option_description
  I18n.t('options.mnemonic_option_description')
end