File: README.md

package info (click to toggle)
leiningen-clojure 2.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,124 kB
  • sloc: xml: 925; sh: 776; lisp: 46; makefile: 45; java: 16
file content (52 lines) | stat: -rw-r--r-- 1,389 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# lein-pprint

Pretty-print a representation of the project map.

This is a sample of how a simple plugin would work.

## Usage

Add `[lein-pprint "1.3.2"]` to `:plugins`.

```bash
$ lein pprint
```

```clj
{:compile-path "/home/phil/src/leiningen/lein-pprint/classes",
 :group "lein-pprint",
 :source-path ("/home/phil/src/leiningen/lein-pprint/src"),
 :dependencies nil,
 :target-path "/home/phil/src/leiningen/lein-pprint/target",
 :name "lein-pprint",
 :root "/home/phil/src/leiningen/lein-pprint",
 :version "1.0.0",
 :jar-exclusions [#"^\."],
 :test-path ("/home/phil/src/leiningen/lein-pprint/test"),
 :repositories
 (["central" {:url "https://repo1.maven.org/maven2"}]
  ["clojars" {:url "https://repo.clojars.org/"}]),
 :uberjar-exclusions [#"^META-INF/DUMMY.SF"],
 :eval-in :leiningen,
 :plugins [[lein-swank "1.4.0-SNAPSHOT"]],
 :resources-path
 ("/home/phil/src/leiningen/lein-pprint/dev-resources"
  "/home/phil/src/leiningen/lein-pprint/resources"),
 :native-path "/home/phil/src/leiningen/lein-pprint/native",
 :description "Pretty-print a representation of the project map."}
```

Use the `--no-pretty` flag to just print rather than pretty-print.

```bash
$ lein pprint :version
"1.0.0"
$ lein pprint --no-pretty -- :version
1.0.0
```

## License

Copyright © 2012-2020 Phil Hagelberg and contributors.

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