Skip to content

Commit

Permalink
script
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Apr 26, 2024
1 parent b8d60c7 commit f7d9337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/babashka/bbin/scripts.clj
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
(println (util/bold "Starting install..." cli-opts)))
(let [cli-opts' (util/canonicalized-cli-opts cli-opts)
script (new-script cli-opts')]
(println "Script:")
(println script)
(p/install script)))))

(defn- default-script [cli-opts]
Expand Down
2 changes: 2 additions & 0 deletions test/babashka/bbin/scripts_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
"/raw/e83305656f2d145430085d5414e2c3bff776b6e8/portal.clj"))

(defn run-install [cli-opts]
(println "Test install...")
(scripts/install (assoc cli-opts :edn false))
(some-> (with-out-str (scripts/install (assoc cli-opts :edn true)))
edn/read-string))

Expand Down

0 comments on commit f7d9337

Please sign in to comment.