Fork me on GitHub
#onyx
<
2017-07-27
>
thomas11:07:30

hi, hopefully a simple question... how do I run the examples in the onyx-examples repo?

thomas11:07:43

what is the actual lein command for this?

gardnervickers11:07:32

@thomas lein run -m lifecycles.core to run the lifecycles examples

gardnervickers11:07:49

We could probably do better there by having a :main namespace for each example

thomas11:07:53

@gardnervickers I tried lein run but didn't realise there is the -m option. Thank you...

thomas11:07:11

and yes a main would help indeed... Happy to help

gardnervickers11:07:19

That would be a welcome PR

gardnervickers11:07:26

Then we could just use lein run

thomas11:07:01

indeed. and at the moment you get an exception as well at the end.

thomas11:07:08

I'll give it a try. thank you

gardnervickers11:07:12

Yea that’s because there’s nothing specified to run

gardnervickers11:07:17

There’s no -main in the file

michaeldrogalis15:07:43

@thomas Can you nix the docstring on the -main and System/exit?

thomas15:07:14

will do @michaeldrogalis and I did need the Sytstem/exit I think

thomas15:07:22

hmmm I just removed it and it did the trick...

michaeldrogalis15:07:09

IIRC System/exit messes with the shutdown of agents.

thomas15:07:49

it works... it just takes a little longer it seems (some times at least)

thomas15:07:52

I have update the PR.

michaeldrogalis15:07:11

Thanks. 🙂 Ill swing back to it later today.