boot-clj / boot

Build tooling for Clojure.
https://boot-clj.github.io/
Eclipse Public License 1.0
1.75k stars 180 forks source link

quiet flag for sift #571

Closed mobileink closed 7 years ago

mobileink commented 7 years ago

The sift task seems always to print "Sifting output files...". It would be nice to be able to suppress this: sift --quiet

arichiardi commented 7 years ago

Yeah this makes sense, the string does not add value, it would be probably better to print out a longer message using util/debug.

alandipert commented 7 years ago

I don't see us doing this since none of the other builtins have a quiet option and I don't think we want to go down that road.

You could do something like this yourself though:

(deftask quietly [] 
  (fn [next-task]
    (fn [fs]
      (with-redefs [boot.util/info (constantly nil)]
        (next-task fs)))))

and then

(boot (quietly) (sift)) or (boot (comp quietly sift))

alandipert commented 7 years ago

Btw if anyone feels strongly about this, happy to have further discussion.