require "colorize" require "option_parser" require "file_utils" require "./quadruplet.cr" require "./backends.cr" # Not currently used. Waiting for API updates. #require "baguette-crystal-base" # Prototyping for the next generation of baguette-crystal-base. class Baguette::Configuration property application_name : String def initialize(@application_name) end end module Baguette::Log def info(text) STDOUT << (":: ".colorize :blue) << (text.colorize :white) << "\n" end def warn(text) STDERR << (":: ".colorize :yellow) << (text.colorize :yellow) << "\n" end def error(text) STDERR << (":: ".colorize :red) << (text.colorize :red) << "\n" end end module Baguette::Base getter configuration : Configuration include Baguette::Log end Colorize.on_tty_only! # CAUTION # backends: storage, ??? # rootfs templates class RootFS::Context include Baguette::Base def initialize @configuration = Baguette::Configuration.new "rootfs" end def print_commands_help STDOUT << "commands:" << "\n" STDOUT << " new