lib/arli/helpers/output.rb in arli-0.9.0 vs lib/arli/helpers/output.rb in arli-1.0.0
- old
+ new
@@ -5,10 +5,11 @@
module Helpers
module Output
CHAR_FAILURE = '✖'.red
CHAR_SUCCESS = '✔'.green
+ # Singleton Class
class << self
attr_accessor :enabled, :cursor
def enable!
self.enabled = true
@@ -21,10 +22,12 @@
def disable!
self.enabled = false
end
end
+ # Include Module
+
self.enable!
self.cursor = TTY::Cursor
def cursor
Arli::Helpers::Output.cursor
@@ -143,9 +146,10 @@
out << "Arli (#{::Arli::VERSION.yellow})"
out << ", Command: #{command.name.to_s.magenta.bold}" if command
if command && command.params && Arli.config.verbose
out << "\n#{command.params.to_s.blue}\n"
end
+ out << command.additional_info if command.respond_to?(:additional_info)
out << "\nLibrary Path: #{Arli.default_library_path.green}\n"
out << "#{hr}\n"
info out
end