This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-16
Channels
- # announcements (1)
- # babashka (13)
- # beginners (33)
- # calva (26)
- # cherry (33)
- # clerk (5)
- # clj-kondo (3)
- # clojure (40)
- # clojure-europe (24)
- # clojure-finland (2)
- # clojure-norway (29)
- # clojurescript (18)
- # cursive (2)
- # datomic (6)
- # docker (11)
- # emacs (12)
- # events (1)
- # fulcro (71)
- # graalvm (8)
- # hyperfiddle (2)
- # lsp (23)
- # meander (5)
- # off-topic (36)
- # polylith (4)
- # re-frame (6)
- # reitit (13)
- # shadow-cljs (87)
- # spacemacs (1)
- # tools-deps (19)
- # vim (5)
- # xtdb (57)
I’m doing something wrong trying to set a default value for a command line option:
(cli/parse-opts ["-a" "foo" "-alias" "bar"] {:alias {:a :alias}
:default {:alias [:dev]}
:coerce {:alias [:keyword]}})
;; => {:alias [:foo :bar]}
(cli/parse-opts [] {:alias {:a :alias}
:default {:alias [:dev]}
:coerce {:alias [:keyword]}})
;; => {}
The first one is fine, but I want the second one to give me {:alias [:dev]}
. I shall not bore you with all the ways I have tried. 😃 Anyone knows how this should be done?Thanks!
(cli/parse-opts [] {:spec {:alias {:alias :a
:default [:dev]
:coerce [:keyword]}}})
;; => {:alias [:dev]}
(I tried things quite similar to that. But missed the significance of the :spec
entry.)Introducing beep-boop, the test wrapper with sound and colors https://github.com/pesterhazy/beep-boop
36 lines of babashka 🙂
In case you can't tell, I really enjoy hearing a pleasant chime when tests pass (or a melancholy chord if they fail)
Is this mac only?
I can't find an afplay
binary or a /sounds
folder on my linux system 🙂
@U3X7174KS try the latest master – does this work for you? You'll need one of afplay, aplay or play installed https://github.com/pesterhazy/beep-boop/commit/60fdb558781c1162c4ee0a935b14334fc0778ebe
@U06F82LES Cool and fun idea! I ported the sounds I enjoyed from boot at https://github.com/logseq-cldwalker/beep-boop . I also turned off the start sound since I don't have much use for it. If you'd like to make the type of sound and start configurable somehow, happy to contribute that back
Nice @U08ALHZ2N. It would be a good addition to beep-boop to make the sounds configurable