github.com/navid-m/sword

Layer over shards to increase usability

4 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  sword:
    github: navid-m/sword
    version: ~> 1.0.4

Then run:

shards install

shard.yml

Crystal
>= 1.14.0
License
MIT
Author
Navid M
Target
  • sword from src/sword.cr

Dependencies

This version declares no dependencies.

README

Sword

CLI for rapid management of Crystal projects.

Navigate to the directory containing shards.yml and run any of these:

  • sword get <package-url> [optional: version] — Add a dependency
  • sword rm <package-url> — Remove a dependency
  • sword up — Update and prune dependencies
  • sword b <build-args> — Build the project
  • sword t <target-name> <source-file.cr> — Add a target to the project
  • sword br — Build the project in release mode
  • sword bs — Build the project with static linking
  • sword init <name> — Initialize a new project
  • sword c <source-file> — Compile a .cr file into an executable
  • sword search <query> — Search for packages
  • sword deps — Show the dependency tree
  • sword info <shard-name> — Show shard information
  • sword clean — Clean cache
  • sword version — Show the current version
  • sword about — About the tool
  • sword help — Display help

License

GPL v3