Re: [Leiningen] Run function from given namespace as CLI command

2014-01-15 Thread Ruslan Prokopchuk
Thanks a lot! I had to try this before putting question in list but something is glitching in my head! On Wednesday, January 15, 2014 11:04:13 AM UTC+2, Thomas Heller wrote: > > Hi, > > lein run -m my-ns.cmd/migrate > > when > > (ns my-ns.cmd) > > (defn migrate [& args]) > > Just use the normal

Re: [Leiningen] Run function from given namespace as CLI command

2014-01-15 Thread Thomas Heller
Hi, lein run -m my-ns.cmd/migrate when (ns my-ns.cmd) (defn migrate [& args]) Just use the normal clojure ns/var notation. HTH, Thomas On Wednesday, January 15, 2014 9:59:20 AM UTC+1, Ruslan Prokopchuk wrote: > > What is idiomatic way to run functions as CLI commands with lein? > Smth. like

Re: leiningen run

2010-12-24 Thread Phil Hagelberg
On Dec 24, 5:06 am, Marek Kubica wrote: > Thanks a lot, hope the bugfix will get pulled soon :) Just merged it in; thanks for reporting. -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: leiningen run

2010-12-24 Thread Marek Kubica
On Fri, 24 Dec 2010 23:54:30 +1100 Alex Osborne wrote: > I think this is a bug. I've sent Phil a pull request with a proposed > fix: > > http://github.com/ato/leiningen/commit/3f299cc560dbf7101c44a08d98da4177d6f326cc Yep, bendlas in #clojure helped me to diagnose. Great that you have a fix alr

Re: leiningen run

2010-12-24 Thread Alex Osborne
Marek Kubica writes: > My project is currently quite simple. The program needs a single > argument, filename, to read from. So I added a :main entry into > project.clj and started > > $ lein run > > this took some time and crashed with an exception, because I did not > specify a file. Well, that

Re: Leiningen Run ?

2009-12-13 Thread Robert Campbell
>> We have talked about adding a run task; >> if you're interested we could even get it in for the 1.0.0 release. I'd definitely like to see that. Right now my deployment sequence looks like: lein compile lein uberjar java -jar myapp-standalone.jar I imagine "lein run" should be able to execute

Re: Leiningen Run ?

2009-12-13 Thread mac
On Dec 6, 12:40 am, Phil Hagelberg wrote: > Zach Tellman writes: > > If that's what it takes, great.  Someone just needs to define what a > > multi-platform JNI package looks like. I'm willing to go along with > > whatever is decided upon by technomancy et al. > > I don't think this is necessaril

Re: Leiningen Run ?

2009-12-05 Thread Phil Hagelberg
Zach Tellman writes: > If that's what it takes, great. Someone just needs to define what a > multi-platform JNI package looks like. I'm willing to go along with > whatever is decided upon by technomancy et al. I don't think this is necessarily within the scope of leiningen itself; it should be

Re: Leiningen Run ?

2009-12-02 Thread Zach Tellman
On Dec 2, 12:38 pm, David Nolen wrote: > Yeah it sounds like you'll need to package up JOGL 2 and push it to Clojars > right? > > > > On Wed, Dec 2, 2009 at 3:20 PM, Zach Tellman wrote: > > On Dec 1, 3:31 pm, David Nolen wrote: > > > So just to keep the conversation going: > > >http://download.j

Re: Leiningen Run ?

2009-12-02 Thread David Nolen
Yeah it sounds like you'll need to package up JOGL 2 and push it to Clojars right? On Wed, Dec 2, 2009 at 3:20 PM, Zach Tellman wrote: > On Dec 1, 3:31 pm, David Nolen wrote: > > So just to keep the conversation going: > > > > > http://download.java.net/maven/2/net/java/dev/gluegen/http://downl

Re: Leiningen Run ?

2009-12-02 Thread Zach Tellman
On Dec 1, 3:31 pm, David Nolen wrote: > So just to keep the conversation going: > > http://download.java.net/maven/2/net/java/dev/gluegen/http://download.java.net/maven/2/net/java/dev/jogl/ > > I note that these two maven repos specify the platform with the following: > > lib-{platform}-{arch} > >

Re: Leiningen Run ?

2009-12-01 Thread David Nolen
So just to keep the conversation going: http://download.java.net/maven/2/net/java/dev/gluegen/ http://download.java.net/maven/2/net/java/dev/jogl/ I note that these two maven repos specify the platform with the following: lib-{platform}-{arch} where platform is: macosx linux windows arch is: u

Re: Leiningen Run ?

2009-12-01 Thread Zach Tellman
On Dec 1, 8:15 am, David Nolen wrote: > On Tue, Dec 1, 2009 at 1:10 AM, Phil Hagelberg wrote: > > David Nolen writes: > > > > The problem is that JOGL needs JNIs and JNIs need to be on > > > java.library.path or java.ext.dirs, not the classpath. In order to > > > make life easier for people lear

Re: Leiningen Run ?

2009-12-01 Thread David Nolen
On Tue, Dec 1, 2009 at 1:10 AM, Phil Hagelberg wrote: > David Nolen writes: > > > The problem is that JOGL needs JNIs and JNIs need to be on > > java.library.path or java.ext.dirs, not the classpath. In order to > > make life easier for people learning about clojure as well generally > > making

Re: Leiningen Run ?

2009-12-01 Thread David Nolen
On Tue, Dec 1, 2009 at 12:16 AM, Alex Osborne wrote: > Hi David, > > David Nolen wrote: > > So my Java ignorance once again rears it's ugly head. It turns out > > that JNI dynamic libs can't really be part of a .jar. > > I can't say I know much about JNI but I've used some libraries like > SQLite

Re: Leiningen Run ?

2009-11-30 Thread Phil Hagelberg
David Nolen writes: > The problem is that JOGL needs JNIs and JNIs need to be on > java.library.path or java.ext.dirs, not the classpath. In order to > make life easier for people learning about clojure as well generally > making lein projects simpler to play around for newbies do people see > an

Re: Leiningen Run ?

2009-11-30 Thread Alex Osborne
Hi David, David Nolen wrote: > So my Java ignorance once again rears it's ugly head. It turns out > that JNI dynamic libs can't really be part of a .jar. I can't say I know much about JNI but I've used some libraries like SQLiteJDBC and Qt Jambi which bundle the native libraries in the jar, so th