Fork me on GitHub
#boot
<
2015-06-22
>
mitchelkuijpers19:06:04

https://github.com/adzerk-oss/boot-cljs-repl/pull/18 Is there any ETA on when this pull request could be merged? Kinda miss my cljs-repl 😞

jballanc19:06:30

I know I could look this up…but I’m feeling lazy: anyone know if there’s a way to insert a user prompt in a boot task?

jballanc19:06:14

i.e. something like (deftask dangerous-stuff [] (comp (confirm “Are you sure you want to foobaz the quxbar?”) (foobaz-the-quxbar)))

jballanc19:06:11

@alandipert: cool! that’s at least a good starting point simple_smile

alandipert19:06:36

@jballanc: np! read-line is the key

alandipert19:06:01

also (.readPassword (System/console)) is handy

jballanc19:06:17

yeah, just wasn’t sure if read-line would work in the context of a task

jballanc19:06:01

I’ve already been bitten by trying to start an nREPL client using with-pre-wrap

jballanc19:06:10

TBH, I’m still not 100% clear why that fails…

alandipert19:06:56

@jballanc: maybe you want with-post-wrap?

jballanc19:06:09

that’s what I ended up using, and it worked

jballanc19:06:43

it’s just strange because using with-pre-wrap the REPL client would start, but then immediately terminate complaining that stdin is no longer available

alandipert19:06:09

oh, that is weird - never seen that one

podviaznikov23:06:47

I’m looking into https://github.com/boot-clj/boot/wiki/S3-Repositories. Never use s3-wagon before. Is it possible to deploy to s3 using boot?

alandipert23:06:35

@podviaznikov: after you add the wagon and name the repo you can use the push task

podviaznikov23:06:01

sounds good, going to try. thanks!