I'm new to leiningen.
When I tried to execute following,
$ lein clean jar
I got
Wrong number of arguments to clean task.
Expected []
$
How can I execute multiple tasks in one command?
Yes, it is possible to execute multiple leiningen tasks in sequence with one command.
Example:
lein do clean, test
You can't do it at the command line directly, but you can with an alias in your project.clj
file:
:aliases
{"go" ["do" "clean," "jar"]}
So at the command line you would then be able to:
lein go
(The comma after clean
is needed, because lein do
expects a comma after each command in order to allow passing arguments to the commands.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With