Fork me on GitHub
#deps-new
<
2021-03-17
>
Xarlyle018:03:27

Hello! I'm trying to use clj-new (got it from practicalli/clojure-deps-edn) to generate a luminus template, but the additional options aren't working.

$ clojure -X:project/new :template luminus :name S-Reinken/WepAppTest :args '[+re-frame, +shadow-cljs, +auth, +h2, +jetty]'
Unrecognized options: +jetty, +re-frame, +h2, +shadow-cljs, +auth
Supported options are: +sqlite, +hoplon, +kee-frame, +immutant, +datomic, +site, +undertow, +h2, +auth-jwe, +reitit, +reagent, +jetty, +cljs, +graphql, +service, +sassc, +oauth, +swagger, +servlet, +auth, +war, +http-kit, +expanded, +cucumber, +aleph, +mongodb, +basic, +postgres, +boot, +mysql, +re-frame, +kibit, +shadow-cljs

Xarlyle018:03:56

Nevermind! I needed to wrap each individual argument in quotes. Leaving the question here in case someone else runs into it

practicalli-johnny21:03:31

I've updated the example on practicalli/clojure-deps-edn to show the correct syntax for template arguments when using the -X flag. Thanks for highlighting this