leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
Jakub Zika 2020-04-02T08:24:17.007600Z

2020-04-02T15:10:47.008900Z

@zikajk I haven’t looked too closely but can you see what is happening with lein with-profile dev pprint

👍 1
2020-04-02T15:11:20.009700Z

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.

2020-04-02T20:16:17.010400Z

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"]}

2020-04-02T20:20:54.010800Z

@jameslintaylor I am not positive I understand - but you could potentially have use for lein-shell

2020-04-02T20:21:19.011200Z

this plugin

2020-04-02T20:21:29.011500Z

That's perfect, thanks 🙂

🎉 1
2020-04-02T20:22:04.011800Z

it can do a lot of cool stuff

2020-04-02T20:22:55.012Z

for your case, something like this:

:aliases {"all" ["do"
                 ["shell" "echo" "running foo"] 
                 ["foo"]
                 ["shell" "echo" "running bar"]
                 ["bar"]
                 ["shell" "echo" "running baz"]
                 ["baz"]]}

👍 1
2020-04-02T20:27:39.012400Z

I had no idea you could use vectors here! Feels good to not have those commas dangling around, awesome 😄

2020-04-02T20:28:22.012600Z

yeah, I prefer vectors for structuring within :aliases

2020-04-02T20:28:36.012800Z

and I’ve found the best results to just wrap each “segment” in it’s own vector for do

2020-04-02T20:29:03.013100Z

composes better that way, if for examples you had

"bar" ["do" <stuff here>]