This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-24
Channels
- # adventofcode (1)
- # announcements (22)
- # babashka (30)
- # beginners (69)
- # calva (53)
- # cider (17)
- # cljfx (1)
- # clojure (2)
- # clojure-australia (1)
- # clojure-europe (1)
- # clojurescript (36)
- # code-reviews (10)
- # conjure (3)
- # cursive (2)
- # datomic (4)
- # fulcro (13)
- # graalvm (261)
- # luminus (2)
- # malli (1)
- # nrepl (13)
- # off-topic (19)
- # rdf (3)
- # reveal (1)
- # ring (3)
- # sci (66)
- # shadow-cljs (14)
- # spacemacs (1)
- # specmonstah (1)
- # test-check (1)
- # vim (2)
- # xtdb (14)
Guardrails 1.1.3 is on Clojars. This release fixes a bug in async mode where errors were not being reported for Clojure. Clojurescript was not affected. https://github.com/fulcrologic/guardrails
 New version of #reveal â https://vlaaad.github.io/reveal/ `1.3.193` â is out! For this major release I focused on providing a way to interact with Reveal window by submitting commands, allowing to easily build better IDE integration. You can learn more in the new readme section: https://vlaaad.github.io/reveal/#interacting-with-reveal-from-code
Here is a little demo using Cursive:

Released babashka 0.2.8 with additional built-in libraries: - core.match (much requested) - clojure.test.check (prep for including spec once it comes out of alpha) - hiccup (who doesn't use it?) https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v028 Hop by in #babashka for questions and complaints ;)

@U0ETXRFEW this is called babashka.process
@U0ETXRFEW That lib is not done yet. I'm stuck on the glob function :/ If you want to help me, that'd be great.
glob happens to be what I most want to have. đ I would love to help, even if I doubt I know how to. How are you stuck?
@U0ETXRFEW Check issue 4 and 5.
I just have to share how I do it in lack of babashka.fs.
(defn glob [pattern]
(-> (shell/sh "bash" "-c" (str "ls " pattern))
:out
(#(when-not (= % "")
(string/split % #"\n")))))
Actually works pretty well.so you are using the bash definition of glob. there are different defaults, recursive, not recursive
Are there difficulties in implementing the recursive version or is it more a matter of deciding which one to use?
deciding which one to use as the default, also, include hidden dirs by default or not?
I have a work in progress version in the glob branch which can be run only from clojure currently
Could it be an option? I think non-recursive makes a good default, if I can opt in on the recursion.
@U0ETXRFEW That's what I've done in the glob
branch:
$ clj -A:babashka.fs/dev
Clojure 1.10.2-alpha2
user=> (require '[babashka.fs :as fs])
nil
user=> (fs/glob "." "**/*.md")
[]
user=> (fs/glob "." "**/*.md" {:recursive true})
[#object[sun.nio.fs.UnixPath 0xdab48d3 "/Users/borkdude/Dropbox/dev/clojure/babashka/sci/CHANGELOG.md"]