File tree Expand file tree Collapse file tree
resources/META-INF/native-image/com.kepler16/kmono-cli Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 1+ {
2+ "resources" : {
3+ "includes" : [
4+ {
5+ "pattern" : " k16/kmono/docs/.*\\ .(md)$"
6+ }
7+ ]
8+ }
9+ }
Original file line number Diff line number Diff line change 7979(def command
8080 {:command " clojure"
8181 :summary " Run an augmented clojure command"
82- :desc (io/resource " k16/kmono/docs/clojure.md" )
82+ :desc (delay ( io/resource " k16/kmono/docs/clojure.md" ) )
8383
8484 :options {:package-aliases opts/package-aliases-opt
8585
Original file line number Diff line number Diff line change 1313(def command
1414 {:command " cp"
1515 :summary " Produce a classpath string from a clojure project"
16- :desc (io/resource " k16/kmono/docs/cp.md" )
16+ :desc (delay ( io/resource " k16/kmono/docs/cp.md" ) )
1717 :options {:aliases opts/aliases-opt
1818 :package-aliases opts/package-aliases-opt}
1919 :run-fn cp-command})
Original file line number Diff line number Diff line change 5555(def command
5656 {:command " exec"
5757 :summary " Run a given command in workspace packages"
58- :desc (io/resource " k16/kmono/docs/exec.md" )
58+ :desc (delay ( io/resource " k16/kmono/docs/exec.md" ) )
5959 :options {:run-in-order opts/run-in-order-opt
6060 :skip-unchanged opts/skip-unchanged-opt
6161 :changed opts/changed-opt
Original file line number Diff line number Diff line change 102102(def command
103103 {:command " query"
104104 :summary " Query information about the package graph"
105- :desc (io/resource " k16/kmono/docs/query.md" )
105+ :desc (delay ( io/resource " k16/kmono/docs/query.md" ) )
106106 :options {:with-versions with-versions
107107 :with-changes-since with-changes-since
108108 :with-changes with-changes
Original file line number Diff line number Diff line change 3434(def command
3535 {:command " repl"
3636 :summary " Start a clojure repl"
37- :desc (io/resource " k16/kmono/docs/repl.md" )
37+ :desc (delay ( io/resource " k16/kmono/docs/repl.md" ) )
3838 :options {:aliases opts/aliases-opt
3939 :package-aliases opts/package-aliases-opt}
4040 :run-fn repl-command})
Original file line number Diff line number Diff line change 11(ns k16.kmono.cli.commands.run
22 (:require
3+ [clojure.java.io :as io]
34 [k16.kmono.cli.common.context :as common.context]
45 [k16.kmono.cli.common.log :as common.log]
56 [k16.kmono.cli.common.opts :as opts]
89 [k16.kmono.cp :as kmono.cp]
910 [k16.kmono.exec :as kmono.exec]
1011 [k16.kmono.log :as log]
11- [k16.kmono.version :as kmono.version]
12- [clojure.java.io :as io]))
12+ [k16.kmono.version :as kmono.version]))
1313
1414(set! *warn-on-reflection* true )
1515
6363(def command
6464 {:command " run"
6565 :summary " Run aliases in workspace packages"
66- :desc (io/resource " k16/kmono/docs/run.md" )
66+ :desc (delay ( io/resource " k16/kmono/docs/run.md" ) )
6767 :options {:run-in-order opts/run-in-order-opt
6868 :skip-unchanged opts/skip-unchanged-opt
6969 :changed opts/changed-opt
Original file line number Diff line number Diff line change 2121 (println desc)
2222
2323 (instance? java.net.URL desc)
24- (println (slurp desc))))
24+ (println (slurp desc))
25+
26+ (instance? clojure.lang.Delay desc)
27+ (println (slurp @desc))))
2528
2629 (println " Usage:" )
2730 (let [path (conj summary-path command)]
You can’t perform that action at this time.
0 commit comments