Fork me on GitHub
#boot
<
2017-02-26
>
qqq02:02:25

` (deftask touch-file [fname] (fn [next-handler] (fn [fileset] (clojure.java.shell/sh "touch" fname)

qqq02:02:34

(next-handler fileset))))

qqq02:02:47

I then call it via (touch-file "appengine-web.xml")

qqq02:02:56

and I get an error of the form argspec->clj wrong number of args(1)

qqq02:02:59

what am I doing wrong?

qqq02:02:41

ha, got it working, deftask has some weird way of passing arguments

seancorfield02:02:55

@qqq Tasks have complete CLI parsing built-in — they are not exactly “just functions” 🙂

qqq02:02:45

@seancorfield: yeah, it all makes sense in 2020 hindsight

qqq05:02:21

does the design of boot arbitrarly decide I can not have functions with more than 52 arguments?

qqq05:02:29

(since it requires that each arg has a unique single char alias)

qqq07:02:23

when dealing with cljs in boot; what controls the creation of the "main.out" and the "out" directories?

qqq09:02:29

can I run two boots from the same directory, one with optimizations none and one with optimizations advanced? or will the two clobber each other due to things like .nrepl-port ?

micha21:02:31

@qqq nrepl-port will be clobbered, but you can set the port with task options

micha21:02:04

also you can have as many options as you like, but not all can have single char aliases

micha21:02:14

you can use nil for the short option for those

micha21:02:13

the main.out and out directories are set up by boot-cljs, because those options are related in tricky ways to other options