forked from boot-clj/boot-new
-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
clj_new.clj
35 lines (28 loc) · 785 Bytes
/
clj_new.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;; copyright (c) 2020-2021 sean corfield, all rights reserved
(ns clj-new
"Provides an API suitable for use with the Clojure CLI's `-X` option."
(:require [clj-new.helpers :as h]))
(defn create
"Public API for clojure -X usage."
[options]
(h/create-x options))
(defn app
"Create new app project."
[options]
(h/create-x (assoc options :template "app")))
(defn lib
"Create new lib project."
[options]
(h/create-x (assoc options :template "lib")))
(defn polylith
"Create new lib project."
[options]
(h/create-x (assoc options :template "polylith")))
(defn template
"Create new template project."
[options]
(h/create-x (assoc options :template "template")))
(defn generate
"Public API for clojure -X usage."
[options]
(h/generate-x options))