babashka / neil

A CLI to add common aliases and features to deps.edn-based projects
MIT License
377 stars 27 forks source link

proof of concept for neil exec #198

Closed behrica closed 11 months ago

behrica commented 12 months ago

proof of concept of neil exec

neil-dev exec behrica/neil-devcontainer-ext :a 1

executes: https://github.com/behrica/neil-devcontainer-ext/blob/main/neil-ext.clj

The args are passed via an atom, not sure if there is a better way: https://github.com/babashka/neil/blob/f28c93e09696c32b0b4ebf1f17183879ac40cc65/src/babashka/neil.clj#L21

behrica commented 12 months ago

Such a change in neil would fully solve my use case for adding "devcontainer" configs to projcet. The "neil exec" code for my case would be this, for illustration:

https://github.com/behrica/neil-devcontainer-ext/blob/main/neil-ext.clj

behrica commented 11 months ago

The same can be done bit pure bb scripts.