Deniz Kurucu <[email protected]> writes:
> fsrun is a simple high order lein task that run some other tasks when a
> file modification occurs. Originally, i wanted to run my clojurescript
> tests automatically and created fsrun. It is my first clojure project, so
> please keep that in mind :)
>
> github : https://github.com/makkalot/fsrun
Ha! I wanted a way of doing this just the other day.
My solution was this; linux specifc, unfortunately and slightly more
complex than I thought it was going to be. It only shows the first
screenful of output on each rerun, so it's could for running a test
ticker in the corner of the screen.
#!/bin/bash
while inotifywait -q -r -e MODIFY --exclude ".#*" --exclude ".*~" .
do
SIZE=`stty size | cut -d" " -f1`
SIZE=`expr $SIZE - 4`
clear
date
echo lein $*
lein $* 2>&1 | head --lines=$SIZE -
echo complete
done;
Phil
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.