module Zap
Overview
Main entry point for the Zap CLI.
Defined in:
cli/cli.crconfig.cr
constants.cr
log.cr
utils/from_env.cr
zap.cr
Constant Summary
-
ACCEPT_HEADER =
"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"
-
See: https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#package-metadata
-
COLORS =
{Colorize::Color256.new(203), Colorize::Color256.new(38), Colorize::Color256.new(76), Colorize::Color256.new(220), Colorize::Color256.new(126), :light_gray, :blue, :light_red, :light_green, :yellow, :dark_gray, :cyan, :red, :green, :light_yellow, :magenta, :light_blue, :light_cyan, :light_magenta}
-
DEFAULT_HOIST_PATTERNS =
["*"]
-
DEFAULT_PUBLIC_HOIST_PATTERNS =
["*eslint*", "*prettier*"]
-
GH_SHORT_REGEX =
/^[^@.\/][^\/]+\/[^\/]+$/
-
GH_URL_REGEX =
/^https:\/\/github.com\/(?P<owner>[a-zA-Z0-9\-_]+)\/(?P<package>[^#^\/]+)(?:#(?P<hash>[.*]))?/
-
HEADERS =
HTTP::Headers {"Accept" => ACCEPT_HEADER}
-
Log =
::Log.for(self)
-
NEW_LINE =
'\n'
-
VERSION =
({{ (`shards version`).stringify }}).chomp