require_helpers.cr

Requiring with relative paths is brittle and often hard to read. Rather than typing this:

require "../../my/file"

You can do this

require_src "my/file"

Installation

Add this to your application's shard.yml:

dependencies:
  require_helpers:
    github: paulcsmith/require_helpers.cr

Usage

Add this to your project to require the helper macros.

require "require_helpers"

Then you can use these macros in your project.

Contributing

  1. Fork it ( https://github.com/paulcsmith/require_helpers/cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors