Class: Dsu::BaseCLI
- Inherits:
-
Thor
- Object
- Thor
- Dsu::BaseCLI
- Includes:
- Support::ColorThemable, Support::CommandHelpColorizable, Support::CommandHookable, Support::TimesSortable
- Defined in:
- lib/dsu/base_cli.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ BaseCLI
constructor
A new instance of BaseCLI.
Methods included from Support::TimesSortable
#sorted_dsu_times_for, #times_for, #times_sort
Methods included from Support::CommandHookable
Methods included from Support::CommandHelpColorizable
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_description ⇒ Object
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
35 36 37 |
# File 'lib/dsu/base_cli.rb', line 35 def exit_on_failure? false end |
.mnemonic_option_description ⇒ Object
43 44 45 |
# File 'lib/dsu/base_cli.rb', line 43 def mnemonic_option_description I18n.t('options.mnemonic_option_description') end |