# frozen_string_literal: true 4# frozen_string_literal: true require "thor" module Neetob class CLI class UI attr_accessor :shell def initialize @shell = Thor::Base.shell.new end def say(statement, color = Thor::Shell::Color::YELLOW) shell.say(statement, color) end def ask(question, echo = true) shell.ask(question, echo: echo) end def yes?(question) shell.yes?(question) end def error(statement) shell.say(statement, Thor::Shell::Color::RED) end def success(statement) shell.say(statement, Thor::Shell::Color::GREEN) end def info(statement) shell.say(statement) end end end end