module C
RESET = "\033[0m"
BOLD = "\033[1m"
GREEN = "\033[38;5;10m"
RED = "\033[38;5;9m"
TEAL="\033[38;5;6m"
end
def log_pipe(msg : String, **props)
puts "#{C::BOLD}#{C::TEAL}>>#{C::RESET} #{msg}#{C::RESET}\n"
puts props.inspect if props.size > 0
end
def err_pipe(msg : String, ex : Exception? = nil)
STDERR.puts "#{C::BOLD}#{C::RED}>>#{C::RESET} #{msg}#{C::RESET}\n"
STDERR.puts ex.inspect
end
def on_passed_pipeline
puts "#{C::BOLD}#{C::GREEN}Pipeline completed successfully!#{C::RESET}\n"
end
def on_failed_pipeline
puts "#{C::BOLD}#{C::RED}Pipeline failed!#{C::RESET}\n"
end