Skip to content

Instantly share code, notes, and snippets.

@indraniel
Created December 3, 2018 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indraniel/1e09e9a69da1d1b72ffafcca45418ab1 to your computer and use it in GitHub Desktop.
Save indraniel/1e09e9a69da1d1b72ffafcca45418ab1 to your computer and use it in GitHub Desktop.
clj tools version of `lein-try`
#!/bin/sh
# tools-deps equivalent of `lein-try`
#
# Additionally see:
#
# https://github.com/hagmonk/find-deps -- what user/find-deps links to
# https://github.com/juxt/edge/blob/master/main/aliases/rebel/edge/rebel/main.clj
# https://clojars.org/seancorfield/depstar -- clj-based uberjarrer
deps="{}"
if [ "$#" -gt 0 ]; then
deps="$(clojure -A:user/find-deps "$@")"
fi
clojure -A:user/rebel -Sdeps "$deps"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment