module

Shards

Constants

BUILD_DATE = ""
BUILD_SHA1 = {{ (env("SHARDS_CONFIG_BUILD_COMMIT")) || "" }}
BUILTIN_COMMANDS = ["build", "run", "check", "init", "install", "list", "lock", "outdated", "prune", "update", "version"] of ::String
DEFAULT_COMMAND = "install"
DEFAULT_VERSION = "0"
FORMATTER = ::Log::Formatter.new do |entry, io| message = entry.message package_name = entry.context[:package]? if @@colors if package_name && entry.severity <= ::Log::Severity::Debug ((io << "[") << (package_name.colorize(:blue)).to_s) << "] " end io << (if color = LOGGER_COLORS[entry.severity]? if idx = message.index(' ') (message[0...idx].colorize(color)).to_s + message[idx..-1] else message.colorize(color) end else message end) else (io << entry.severity.label[0]) << ": " if package_name && entry.severity <= ::Log::Severity::Debug ((io << "[") << package_name) << "] " end io << message end end
INSTALL_DIR = "lib"
LOCK_FILENAME = "shard.lock"
Log = ::Log.for(self)
LOGGER_COLORS = {::Log::Severity::Error => :red, ::Log::Severity::Warn => :yellow, ::Log::Severity::Info => :green, ::Log::Severity::Debug => :light_gray}
OVERRIDE_FILENAME = "shard.override.yml"
SPEC_FILENAME = "shard.yml"
VERSION = {{ (read_file("/tmp/tmp.MHeOpa/src/src/../VERSION")).chomp }}
VERSION_AT_FOSSIL_COMMIT = /^(\d+[-.][-.a-zA-Z\d]+)\+fossil\.commit\.([0-9a-f]+)$/
VERSION_AT_GIT_COMMIT = /^(\d+[-.][-.a-zA-Z\d]+)\+git\.commit\.([0-9a-f]+)$/
VERSION_AT_HG_COMMIT = /^(\d+[-.][-.a-zA-Z\d]+)\+hg\.commit\.([0-9a-f]+)$/
VERSION_REFERENCE = /^v?\d+[-.][-.a-zA-Z\d]+$/
VERSION_TAG = /^v(\d+[-.][-.a-zA-Z\d]+)$/

Class methods

bin_path
Source
bin_path=(bin_path : String)
Source
cache_path
Source
cache_path=(cache_path : String)
Source
check_and_install_dependencies(path)
Source
cli_options
Source
colors=(colors : Bool)
Source
colors?
Source
crystal_bin
Source
crystal_bin=(crystal_bin : String)
Source
crystal_version
Source
crystal_version=(crystal_version : String)
Source
display_help_and_exit(opts)
Source
frozen=(frozen)
Source
frozen?
Source
global_override_filename
Source
info
Source
install_path
Source
install_path=(install_path : String)
Source
jobs
Source
jobs=(jobs : Int32)
Source
local=(local)
Source
local?
Source
parse_args(args)
Source
run_shards_subcommand(process_name, args)
Source
set_debug_log_level
Source
set_warning_log_level
Source
skip_executables=(skip_executables)
Source
skip_executables?
Source
version_string
Source
with_development=(with_development)
Source
with_development?
Source

Nested types