Module: Dsu::Support::SubcommandHelpColorizable::ClassMethods
- Defined in:
- lib/dsu/support/subcommand_help_colorizeable.rb
Instance Method Summary collapse
- #color_theme ⇒ Object
-
#command_help(shell, subcommand = false) ⇒ Object
rubocop:disable Style/OptionalBooleanParameter.
Instance Method Details
#color_theme ⇒ Object
20 21 22 |
# File 'lib/dsu/support/subcommand_help_colorizeable.rb', line 20 def color_theme @color_theme ||= Models::ColorTheme.current_or_default end |
#command_help(shell, subcommand = false) ⇒ Object
rubocop:disable Style/OptionalBooleanParameter
15 16 17 18 |
# File 'lib/dsu/support/subcommand_help_colorizeable.rb', line 15 def command_help(shell, subcommand = false) # rubocop:disable Style/OptionalBooleanParameter help_text = Services::StdoutRedirectorService.call { super } puts apply_theme(help_text, theme_color: color_theme.help) end |