Skip to content

Instantly share code, notes, and snippets.

Avatar

Jacob O'Bryant jacobobryant

View GitHub Profile
@jacobobryant
jacobobryant / deploy.cljs
Created May 10, 2019
Script for automating Datomic Cloud Ion push + deploy
View deploy.cljs
#!/usr/bin/planck
(ns deploy.core
(:require [cljs.reader :refer [read-string]]
[planck.shell :as shell]))
(defn sh [& args]
(let [result (apply shell/sh args)]
(if (= 0 (:exit result))
(:out result)
(throw (ex-info (:err result) {})))))