Clojure Tools
You should be familiar with the official documenatation of Clojure Tools . The purpose of BigConfig is to incrase developer productivity by automation. Therefore the creation of projects to create configuration files is also automated.
# Clojure Tools manualclojure -A:deps -Ttools help/doc
Create your templates
Section titled “Create your templates”The predefined templates are a starting point but eventually you should define the templates that make sense for your environment.
-
Create a clojure repo or use an existing project. Adapt
:path
,:ns
, and:name
to your project.Terminal window # Create your initial version of `tools.clj`cd clj-projclojure -Tbig-config tools :path src :ns mybc :name tools.clj -
Any
deps.edn
project can become a tool. Add this key at the root level and adapt:ns-default
.:tools/usage {:ns-default big-config.tools} -
Use Neil to add BigConfig as dependency to your project.
Terminal window neil add dep io.github.amiorin/big-config -
Now you are ready to install your repo as a tool in development mode or from GitHub if you are on a different machine.
Terminal window # Install the tool as mybc in development modeclojure -Ttools install io.github.USER/REPO '{:local/root "."}' :as mybc -
Now you can create as many templates you want. You can check the the default templates .
Terminal window # Use template fooclojure -Tmybc foo
Conclusion
Section titled “Conclusion”BigConfig doesn’t have a CLI on purpose but it leverages Clojure Tools to delegate the developer to create the perfect CLI for his environment.