module Inception::CliHelpers::Interactions

Public Instance Methods

bold() click to toggle source
# File lib/inception/cli_helpers/interactions.rb, line 5
def bold; "\033[1m" end
clear() click to toggle source
# File lib/inception/cli_helpers/interactions.rb, line 4
def clear; "\033[0m" end
cyan() click to toggle source
# File lib/inception/cli_helpers/interactions.rb, line 3
def cyan; "\033[36m" end
green() click to toggle source
# File lib/inception/cli_helpers/interactions.rb, line 7
def green; "\033[32m" end
hl() click to toggle source

Helper to access HighLine for ask & menu prompts

# File lib/inception/cli_helpers/interactions.rb, line 11
def hl
  @hl ||= HighLine.new
end
red() click to toggle source
# File lib/inception/cli_helpers/interactions.rb, line 6
def red; "\033[31m" end
yellow() click to toggle source
# File lib/inception/cli_helpers/interactions.rb, line 8
def yellow; "\033[33m" end