Skip to content

IDEA: Add binstubs for common rails scripts

Matthias Käppler requested to merge rails-bin-stubs into master

One thing I don't like about gck is its CLI "ergonomics". Where I was previously able to say:

$ bundle exec rspec path/to/spec

I now have to:

$ COMMAND='bundle exec rspec path/to/spec' make command

which is awkward.

The problem with make tasks is that you cannot pass arguments to them, so they are not good fits for convenient CLIs.

My idea was therefore to add a bunch of (optional) binstubs in order to restore the original syntax:

$ source scripts/binstubs
$ rspec path/to/spec

This now works and runs inside the container!

WDYT?

Edited by Matthias Käppler

Merge request reports