github.com/navid-m/sword

Layer over shards to increase usability

4 stars
0 dependents
License: MIT

Nothing has been indexed for 1.0.2 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

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

Then run:

shards install

shard.yml

No shard.yml has been indexed for 1.0.2. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

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