@zikajk I haven’t looked too closely but can you see what is happening with
lein with-profile dev pprint
Should show you what all is merged into the project map (look at top level keys). Should see :main there and be sure it is not what you want.
Can anyone suggest a good way to get separators printed out between tasks in `lein do` ? ie. I'll use some pseudo `lein eval` task to illustrate the behaviour I'd like to achieve:
:aliases {"all" ["do"
"eval \"(println \"running foo\")\","
"foo,"
"eval \"(println \"running bar\")\","
"bar,"
"eval \"(println \"running baz\")\","
"baz"]}
@jameslintaylor I am not positive I understand - but you could potentially have use for lein-shell
https://github.com/hypirion/lein-shell/blob/master/doc/DOCUMENTATION.md
this plugin
That's perfect, thanks 🙂
it can do a lot of cool stuff
for your case, something like this:
:aliases {"all" ["do"
["shell" "echo" "running foo"]
["foo"]
["shell" "echo" "running bar"]
["bar"]
["shell" "echo" "running baz"]
["baz"]]}
I had no idea you could use vectors here! Feels good to not have those commas dangling around, awesome 😄
yeah, I prefer vectors for structuring within :aliases
and I’ve found the best results to just wrap each “segment” in it’s own vector for do
composes better that way, if for examples you had
"bar" ["do" <stuff here>]