From 880ac267934b451770ecf485551aae8564b817af Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 12 Jan 2020 20:46:00 +0100 Subject: [PATCH] Doc --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c3f13d10..1416846c 100644 --- a/README.md +++ b/README.md @@ -249,9 +249,11 @@ Contains the function `add-classpath` which can be used to add to the classpath dynamically: ``` clojure +(require '[babashka.classpath :refer [add-classpath]] + '[clojure.java.shell :refer [sh]]) (def medley-dep '{:deps {medley {:git/url "https://github.com/borkdude/medley" :sha "91adfb5da33f8d23f75f0894da1defe567a625c0"}}}) -(def cp (:out (sh "bb" "clojure" "-Spath" "-Sdeps" (str medley-dep)))) +(def cp (:out (sh "clojure" "-Spath" "-Sdeps" (str medley-dep)))) (add-classpath cp) (require '[medley.core :as m]) (m/index-by :id [{:id 1} {:id 2}]) ;;=> {1 {:id 1}, 2 {:id 2}}