module MotherBrain::Cli::Shell
Attributes
shell[W]
Public Class Methods
shell()
click to toggle source
Returns the shell used in the motherbrain CLI. If you are in a Unix platform it will use a colored shell, otherwise it will use a color-less one.
@return [Shell::Basic, Shell::Color
]
# File lib/mb/cli/shell.rb, line 15 def shell @shell ||= if ENV['MB_SHELL'] && ENV['MB_SHELL'].size > 0 Shell.const_get(ENV['MB_SHELL'].capitalize) elsif Buff::Platform.windows? && !ENV['ANSICON'] Shell::Basic else Shell::Color end end