Built a DSL for faster writing of single-file scripts #85
gillisd
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@postmodern thanks for all your hard work on this project. I discovered it through Ronin and love your eye for great design.
I write a lot of shorter, single-file scripts, and have been trying to find a way to get both multi-command support and a fast workflow. CommandKit, while incredibly robust and feature rich, requires some setup for new utilities, and I found myself longing for an expressive DSL like rake. So I built one around command_kit - would love your thoughts/feedback.
Compare this to the traditional approach requiring separate classes and files:
It mainly just adds the methods :cli and :command, and then supports all of the original command_kit dsl methods inside the :command blocks - so you get the full power of command_kit with rake-like expressiveness for quick scripts.
Here is the implementation.
Beta Was this translation helpful? Give feedback.
All reactions