-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Lemur from a "CLI-only" application to a "library with CLI wrapper" #23
Comments
Is there still interest in this? I don't have much experience in lemur, but I'm willing to give it a crack. Have any of these already been done? |
I was interested in this before, but I don't think I'm that interested in it any longer. I have since found alternatives for doing batch runs in EMR. But I still think it's an interesting idea! |
No one is working on it, to my knowledge. If you want to give it a try, On Thu, Sep 18, 2014 at 12:24 PM, Jim Downing [email protected]
|
For stage 1, is a lemur.tool ns still a good idea, or should I look to move -main into lemur.command-line? |
Combining lemur.tool and lemur.command-line into a single namespace as lemur.command-line seems reasonable. lemur.command-line/quit should probably be re-named, as it won't actually quit anymore. |
I've created a new lemur.tool, but trying to merge it with lemur.command-line has revealed some coupling between core and command-line, mostly caused by the context map carrying raw args as well as everything else. |
Is there an IRC channel for this project? |
No IRC channel. But you can reach out to me over google chat (marc at On Thu, Sep 25, 2014 at 5:41 AM, Jim Downing [email protected]
|
I'm interested in this too. Currently I have a separate Lemur project that has launch configurations for other projects. Instead of this, I would like to have the lemur dependency as part of my @jimdowning If I can be of assistance here please let me know. |
Hi Jeroen, Jim, Let me know if I can answer any questions. I don't have a particular need marc On Mon, Sep 29, 2014 at 5:33 AM, Jeroen van Dijk [email protected]
|
Hi Marc, I've done some work here #31 I need to test it with some projects before I'm certain I didn't break anything. But feel free to comment on the approach. Jeroen |
Thanks, Jeroen. marc On Thu, Oct 23, 2014 at 10:58 AM, Jeroen van Dijk [email protected]
|
Jeroen, marc On Fri, Oct 24, 2014 at 2:33 PM, Marc Limotte [email protected] wrote:
|
Hi Marc, Thanks for having a look. Your suggestions make sense. I definitely see it as a first iteration to get going. This seemed like the easiest first step. I hope get to the explicit context soon. Jeroen Btw, do you run the test suite somewhere publicly? It would be nice if the AWS tests would pass somewhere visible :-) |
I've updated #31. If people want to follow what's going on, I'll post everything there. |
Requested by Kyle Burton, Ryan Michael and Andrew Montalenti.
There have been some requests to allow lemur to be used as a library instead of a CLI just tool.
Roughly, this is the work effort:
Solution: Move the -main fn from lemur.core into a new namespace (e.g. lemur.tool) and change the shell script bin/lemur to use the new namespace.
Solution: Make it throw an Exception instead; and have the lemur.tool wrapper catch the Exception and do System/exit with the error message.
Solution: Create a context object and change functions that use the global context to accept an extra arg instead. This should only impact the lemur.core namespace.
The text was updated successfully, but these errors were encountered: