Skip to content

Commit

Permalink
Release lein-pprint 1.1.2, allows running outside projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Sep 12, 2014
1 parent 27c2e6f commit a625cf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lein-pprint/project.clj
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
(defproject lein-pprint "1.1.1"
(defproject lein-pprint "1.1.2"
:description "Pretty-print a representation of the project map."
:url "https://github.com/technomancy/leiningen"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:eval-in-leiningen true)
4 changes: 2 additions & 2 deletions lein-pprint/src/leiningen/pprint.clj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(ns leiningen.pprint
(:require [clojure.pprint :as pprint]))

(defn pprint
(defn ^:no-project-needed pprint
"Pretty-print a representation of the project map."
[project & keys]
(if (seq keys)
(doseq [k keys]
(pprint/pprint (project (read-string k))))
(pprint/pprint project))
(flush))
(flush))

0 comments on commit a625cf4

Please sign in to comment.