Crystal package manager, designed to be fast.
Experimental replacement to shards
The main purpose is to have faster dependencies resolution and download.
Several features arestill lacking compared to
Install locked dependencies:
Build the first target:
The configuration file is
sherd.ini and the lock file is
shards.lock can still be used.
By default, dependencies will be cloned in Git/SSH, then HTTPS, if nothing is specified in the URI.
heads/ match the syntax of
git show. The only exception is
commit:, which is the commit hash revision.
master will be taken if nothing is specified.
[dependencies] first = github.com/user/first >=4.0.3 || <4.4.0 dep = github.com/user/dep1 tags/prerelease somelib = https://gitlab.com/user/somelib heads/dev otherlib = bitbucket.com/user/otherlib commit:1a400f9c6440fbrcb093066f54959eg9fbde5659
Executes shell commands, or build a Crystal source file.
postinstall is a special key: the command will be executed at the end of the library installation.
extra="--static", can be used to append extra instructions to the command.
[package] name = sherd [scripts] postinstall = make build = src/sherd.cr build:test = src/other.cr
To run a script, use
sherd exec [script name], or
sherd e [script name]
If the string corresponds to a Crystal source file, it will be build with
crystal build into
sherd e build extra="--static" will build statically a
To change the binary name to build, add a name after a colon (like
sherd e build:test will build
Multiple targets be run too:
sherd e build run
Note: There is no
executables sections compared to Shards.
Copyright (c) 2019 Julien Reichardt - ISC License