Skip to content

Instantly share code, notes, and snippets.

@rplevy
Created August 18, 2017 20:31
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 rplevy/c1e445affb042c9f57b03604a2ed8d83 to your computer and use it in GitHub Desktop.
Save rplevy/c1e445affb042c9f57b03604a2ed8d83 to your computer and use it in GitHub Desktop.
# in my .bashrc
xmlclj() { planck -D funcool/tubax:0.2.0 -e "(require '[tubax.core :as tubax]) (require '[planck.core :refer [slurp]]) (require '[cljs.pprint :refer [pprint]])"'(pprint (tubax/xml->clj (slurp "'$1'")))'; }
# example: xmlclj /tmp/foo.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment