Method: Pact::Provider::Help::ConsoleText#call
- Defined in:
- lib/pact/provider/help/console_text.rb
#call ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/pact/provider/help/console_text.rb', line 21 def call begin [:color] ? ColorizeMarkdown.(help_text) : help_text rescue Errno::ENOENT [:color] ? error_text_coloured : error_text_plain end end |