Skip to content

Instantly share code, notes, and snippets.

@RickMoynihan
Created August 7, 2018 10:18
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 RickMoynihan/f8f5ee24eea9d64806cd390481652996 to your computer and use it in GitHub Desktop.
Save RickMoynihan/f8f5ee24eea9d64806cd390481652996 to your computer and use it in GitHub Desktop.
Example of using clojure cli tools to write a script that fetches dependencies via tools.deps
#!/usr/bin/env clojure -Sdeps {:deps,{clj-time/clj-time,{:mvn/version,"0.14.4"}}}
(require '[clj-time.core :as t])
(println (t/now))
(println "Received command line arguments " *command-line-args*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment