/
deps_brick_project.clj
28 lines (25 loc) · 1.15 KB
/
deps_brick_project.clj
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
(ns polylith.clj.core.help.deps-brick-project
(:require [polylith.clj.core.util.interface.color :as color]
[polylith.clj.core.help.shared :as s]))
(defn help [cm]
(str " Shows dependencies for selected brick and project.\n"
"\n"
" poly deps project:" (s/key "PROJECT" cm) " brick:" (s/key "BRICK" cm) "\n"
" " (s/key "PROJECT" cm) " = The project (name or alias) to show dependencies for.\n"
" " (s/key "BRICK" cm) " = The brick to show dependencies for.\n"
"\n"
" used by < " (color/green cm "user") " > uses\n"
" ------- ----\n"
" " (color/green cm "payer") " " (color/green cm "util") "\n"
"\n"
" In this example, " (color/green cm "user") " is used by " (color/green cm "payer") " and it uses " (color/green cm "util") " itself.\n"
" If a brick ends with '(t)' then it indicatest that it's only used\n"
" from the test context.\n"
"\n"
" Example:\n"
" poly deps project:myproject brick:mybrick"))
(defn print-help [color-mode]
(println (help color-mode)))
(comment
(print-help "dark")
#__)