module Shards
Defined in:
cli.crcommands/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.19.0/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
- .bin_path
- .bin_path=(bin_path : String)
- .cache_path
- .cache_path=(cache_path : String)
- .check_and_install_dependencies(path)
- .cli_options
- .colors=(colors : Bool)
- .colors? : Bool
- .crystal_bin
- .crystal_bin=(crystal_bin : String)
- .crystal_version
- .crystal_version=(crystal_version : String)
- .display_help_and_exit(opts)
- .frozen=(frozen)
- .frozen?
- .global_override_filename
- .info
- .install_path
- .install_path=(install_path : String)
- .jobs : Int32
- .jobs=(jobs : Int32)
- .local=(local)
- .local?
- .parse_args(args)
- .run
- .run_shards_subcommand(process_name, args)
- .set_debug_log_level
- .set_warning_log_level
- .skip_executables=(skip_executables)
- .skip_executables?
- .skip_postinstall=(skip_postinstall)
- .skip_postinstall?
- .version_string
- .with_development=(with_development)
- .with_development?