Module: Tapioca::CliHelper
- Extended by:
- T::Helpers, T::Sig
- Included in:
- Cli, Tapioca::Commands::Command
- Defined in:
- lib/tapioca/helpers/cli_helper.rb
Instance Method Summary collapse
Instance Method Details
#rbi_formatter(options) ⇒ Object
28 29 30 31 32 |
# File 'lib/tapioca/helpers/cli_helper.rb', line 28 def rbi_formatter() rbi_formatter = DEFAULT_RBI_FORMATTER rbi_formatter.max_line_length = [:rbi_max_line_length] rbi_formatter end |
#say_error(message = "", *color) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/tapioca/helpers/cli_helper.rb', line 14 def say_error( = "", *color) # Thor has its own `say_error` now, but it has two problems: # 1. it adds the padding around all the messages, even if they continue on # the same line, and # 2. it accepts a last parameter which breaks the ability to pass color values # as splats. # # So we implement our own version here to work around those problems. shell.indent(-shell.padding) do super(, color) end end |