sharn
Version, currently 0.2.04 versions
- 0.2.0latestFeb 6, 2018
- 0.1.18not indexedJul 17, 2020
- 0.1.17not indexedJul 17, 2020
- 0.1.16not indexedJul 17, 2020
github.com/nedpals/sharn
Managing shards made easier.
Installation
# Add this to your shard.yml
dependencies:
sharn:
github: nedpals/sharn
version: ~> 0.2.0Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- Ned Palacios
- Target
sharnfrom src/sharn.cr
Dependencies
Runtime Dependencies
- cli*github: mosop/cli
README
Sharn (0.2.0) 
A CLI app built on Crystal that makes managing shards easier.
No more writing to shards.yml by hand. In just a command, Sharn will handle everything for you.
This is also my own version of the solution for crystal-lang/shards#144 that is currently been discussed at the crystal-lang/shards repo.
Note: This is not a replacement for Shards. It will still be used in installing your dependencies.
Installation
- Clone this repo.
- Build it by running
build.sh - Run it.
Usage
- Add dependency/dependencies.
sharn add git/reponame
1.1 (new) Add development dependencies with dev-add
sharn dev-add git/reponame
- Remove dependency/dependencies
sharn rm depname1 depname2
- Specify version.
sharn add git/repo@0.1.0
- Specify git platform
sharn add [gitlab/github/bitbucket]:git/repo
Tip: By default, when none is specified, Sharn will automatically identifies it as a GitHub repo.
- Specify branch.
sharn add git/repo#master
Development Roadmap
- [x] Primary commands (add, remove, inspect, install)
- [x]
addcommand - [x]
removecommand - [x]
inspectcommand - [x]
installcommand - [x]
updatecommand
- [x]
- [x]
dev-addcommand (new!) - [x] execute
shards installin post-installation - [x] YAML manipulation
- [x] ~~Installing dev dependencies with
--devflag(*)~~ (Replaced withdev-addcommand) - [x] Specify git plaform
- [x] Specify branch (with
--branchoption) - [x] Specify version
- [x] Just version number
- [x]
~>,=>,<=,>,<
- [x]
Quirks
- You may have noticed that your
shard.ymlfile has been changed with newlines/whitespaces removed. This is because the way YAML module in Crystal builds the markup but don't worry this is still valid YAML and it has no difference when installing dependencies compared with newlines/whitespaces.
~~2. Dependencies added using the --dev flag are now working but not added in the correct order as per shard.yml specification.~~ (Solved in https://github.com/nedpals/sharn/commit/644280a50a69880c0a329454b2cf884979581a5b)
Contributing
- Fork it ( https://github.com/nedpals/sharn/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- nedpals Ned Palacios - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.0- Tagged
- Feb 6, 2018
- Commit
e403f0c59e9d- Crystal
0.23.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/nedpals/sharn
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 23, 2026
- Synced
- Sep 23, 2026
- Versions
- 4