~severeoverfl0w/wedge-mise

ref: 97d2f08b1242a51c8310fa94f929a5ae4ce71a00 wedge-mise/src/io/dominic/wedge/mise/rebel.clj -rw-r--r-- 676 bytes
97d2f08b — Dominic Monroe Clarify that alias may need loading for mise 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(ns io.dominic.wedge.mise.rebel
  (:require
    [clojure.tools.deps.alpha.repl :as tda.repl]
    [io.dominic.wedge.mise :as mise]))

(defn- add-libs
  []
  (binding [;; Suppress missing S3Transport warning
            *err* (java.io.StringWriter.)]
    (tda.repl/add-libs
      '{com.bhauman/rebel-readline {:mvn/version "0.1.4"}
        mvxcvi/puget {:mvn/version "1.3.1"}}))
  :loaded)

(defn -main
  [& args]
  (let [cl (.getContextClassLoader (Thread/currentThread))]
    (.setContextClassLoader (Thread/currentThread) (clojure.lang.DynamicClassLoader. cl)))
  (mise/load-libs)
  (mise/setup)
  (add-libs)
  (load "io/dominic/wedge/mise/rebel/impl")
  ((resolve 'main*)))