module Shards

Defined in:

cli.cr
commands/build.cr
commands/check.cr
commands/command.cr
commands/init.cr
commands/install.cr
commands/list.cr
commands/lock.cr
commands/outdated.cr
commands/prune.cr
commands/run.cr
commands/update.cr
commands/version.cr
config.cr
dependency.cr
errors.cr
lock.cr
logger.cr:4
logger.cr:13
molinillo_solver.cr
override.cr
package.cr
requirement.cr
resolvers/crystal.cr
resolvers/fossil.cr
resolvers/git.cr
resolvers/hg.cr
resolvers/path.cr
resolvers/resolver.cr
script.cr
spec.cr
target.cr
version.cr
versions.cr

Constant Summary

BUILD_DATE = ""
BUILD_SHA1 = {{ (env("SHARDS_CONFIG_BUILD_COMMIT")) || "" }}
DEFAULT_COMMAND = "install"
DEFAULT_VERSION = "0"
FORMATTER = ::Log::Formatter.new do |entry, io| message = entry.message if @@colors 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]) << ": ") << 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("/srv/crystaldoc.info/github-crystal-lang-shards-v0.17.3/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 Method Summary

Class Method Detail

def self.bin_path #

[View source]
def self.bin_path=(bin_path : String) #

[View source]
def self.cache_path #

[View source]
def self.cache_path=(cache_path : String) #

[View source]
def self.check_and_install_dependencies(path) #

[View source]
def self.cli_options #

[View source]
def self.colors=(colors) #

[View source]
def self.colors? #

[View source]
def self.crystal_bin #

[View source]
def self.crystal_bin=(crystal_bin : String) #

[View source]
def self.crystal_version #

[View source]
def self.crystal_version=(crystal_version : String) #

[View source]
def self.display_help_and_exit(opts) #

[View source]
def self.frozen=(frozen) #

[View source]
def self.frozen? #

[View source]
def self.global_override_filename #

[View source]
def self.info #

[View source]
def self.install_path #

[View source]
def self.install_path=(install_path : String) #

[View source]
def self.jobs : Int32 #

[View source]
def self.jobs=(jobs : Int32) #

[View source]
def self.local=(local) #

[View source]
def self.local? #

[View source]
def self.parse_args(args) #

[View source]
def self.run #

[View source]
def self.run_shards_subcommand(process_name, args) #

[View source]
def self.set_debug_log_level #

[View source]
def self.set_warning_log_level #

[View source]
def self.skip_executables=(skip_executables) #

[View source]
def self.skip_executables? #

[View source]
def self.version_string #

[View source]
def self.with_development=(with_development) #

[View source]
def self.with_development? #

[View source]