GithubHelp home page GithubHelp logo

lein-shell's Introduction

lein-shell

A Leiningen plugin for calling shell commands. lein-shell is an active, stable project.

Installation

Put [lein-shell "0.5.0"] into the :plugins vector of your :user profile inside ~/.lein/profiles.clj if you want to use lein shell on a per user basis (this doesn't really make much sense, but you're allowed to if you want to!).

To explicitly say that this project needs lein-shell to be built, put [lein-shell "0.5.0"] into the :plugins vector of your project.clj. If you have no :plugins vector in your project.clj, it should look like this:

(defproject your-project-here "version"
 ...
 :plugins [[lein-shell "0.5.0"]]
 ...)

Quickstart

It is very straightforward to use lein-shell: lein-shell will call the shell command with eventual parameters you include. For instance, if you want your favourite cow to say hello to you from Leiningen, the following will be printed within your shell:

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

Now, this may look rather useless as you can just omit lein shell and get the exact same result in less time. However, it may be of value if you're using make or ANTLR to generate files for you, needed by your Clojure project. For example, to automatically call make before running tasks, add this to your project.clj map:

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

If the command exits with a nonzero exit code, shell will (attempt to) exit Leiningen with the same exit code. This functionality can be overridden if desired, and many other settings can be modified as well.

Documentation

For more information, have a look at the documentation. It contains a lot of examples, some which hopefully are useful to you.

License

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

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

lein-shell's People

Contributors

hypirion avatar the-real-neil avatar danielcompton avatar sumbach avatar

Watchers

Bo Chen avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.