Liking cljdoc? Tell your friends :D

lein-shell

Clojars Project cljdoc test

A Leiningen plugin that calls shell commands.

Stack

Clojure Leiningen

Installation

Put [net.clojars.savya/lein-shell "1.0.3"] in the :plugins vector of your :user profile in ~/.lein/profiles.clj to use lein shell for one user.

Put [net.clojars.savya/lein-shell "1.0.3"] in the :plugins vector of project.clj to build this project with lein-shell. If project.clj has no :plugins vector, use this form:

(defproject your-project-here "version"
 ...
 :plugins [[net.clojars.savya/lein-shell "1.0.3"]]
 ...)

Usage

lein-shell calls the shell command with the parameters that you give. For example, run this command to print a message from Leiningen:

$ lein shell cowsay 'Hello from Leiningen!'
 _______________________
< Hello from Leiningen! >
 -----------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

You can omit lein shell and get the same result for this command. Use lein-shell when make or ANTLR generates files for a Clojure project. For example, add this to project.clj to call make before tasks run:

:prep-tasks [["shell" "make"] "javac" "compile"]

If the command returns a nonzero exit code, shell tries to exit Leiningen with the same code. You can change this behavior and other settings.

Documentation

See the documentation for more information and examples.

License

Copyright © 2013-2015 Jean Niklas L'orange and contributors.

Maintenance fork (2026) by Savyasachi. Original: https://github.com/hyPiRion/lein-shell. Distributed under the Eclipse Public License 1.0. The original license remains in effect.

Distributed under the Eclipse Public License, the same as Clojure.

Can you improve this documentation? These fine people already did:
Jean Niklas L'orange, Savyasachi, Neil & Sam Umbach
Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close