File tree Expand file tree Collapse file tree
Clojure/Clojure.Source/clojure/tools/deps Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 :args - map of args to pass to function
2222
2323 Options:
24- :command - CLI command, default=\" clojure\"
2524 :preserve-envelope - if true, return the full invocation envelope, default=false"
2625 {:added " 1.12" }
27- [{:keys [tool-name tool-alias fn args command preserve-envelope]
28- :or {command #?( :clj " clojure " :cljr " cljr " ), preserve-envelope false }
26+ [{:keys [tool-name tool-alias fn args preserve-envelope]
27+ :or {preserve-envelope false }
2928 :as opts}]
3029 (when-not (or tool-name tool-alias) (throw (ex-info " Either :tool-alias or :tool-name must be provided" (or opts {}))))
3130 (when-not (symbol? fn ) (throw (ex-info (str " fn should be a symbol " fn ) (or opts {}))))
3231 (let [args (conj [fn ] (assoc args :clojure.exec/invoke :fn ))
3332 _ (when (:debug opts) (println " args" args))
34- command-strs [command (str " -T" (or tool-alias tool-name)) " -" ]
33+ command-strs [" clojure " (str " -T" (or tool-alias tool-name)) " -" ]
3534 _ (when (:debug opts) (apply println " Invoking: " command-strs))
3635 {:keys [in out]} (apply proc/start command-strs)]
3736 (binding [*print-length* nil
You can’t perform that action at this time.
0 commit comments