This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-27
Channels
- # adventofcode (1)
- # announcements (16)
- # babashka (16)
- # beginners (59)
- # calva (13)
- # clj-kondo (7)
- # clj-on-windows (3)
- # cljdoc (5)
- # clojure (85)
- # clojure-dev (5)
- # clojure-europe (4)
- # clojured (3)
- # clojurescript (87)
- # cursive (12)
- # emacs (4)
- # fulcro (15)
- # gratitude (1)
- # introduce-yourself (4)
- # malli (7)
- # off-topic (5)
- # polylith (6)
- # re-frame (15)
- # reagent (2)
- # shadow-cljs (5)
- # tools-deps (6)
- # web-security (2)
- # xtdb (5)
#!/usr/bin/env bb
(require '[babashka.deps :as deps])
(deps/add-deps '{:deps {babashka/http-server {:git/url ""
:git/sha "d1f01b47492dec245f3f6d297849ee038243ee86"}}})
(require '[babashka.http-server :as http-server])
(apply http-server/-main *command-line-args*)
if you save that script on your path, then you have an http server. the repo doesn't yet accept any options, so it's a very basic first start
I'm wondering if we could support something like:
bb add-tool :git/url ... :git/sha ... :as http-server
and it would save that script into ~/.babashka/tools
which you could then add to your path or so
@teodorlu https://github.com/borkdude/blog/commit/131663d19963dc601195e10ca0c62f5de03bee3e
Does that mean you can add only that alias to the global bb.edn
and use it from anywhere?
Nice!
Yeah, same use case as I'm interested in. Having a look at your setup now, this is interesting 🙂
How would I use babashka (or babashka.process) to spawn a process which stdout,stderr I'm not interested in and outlives the babashka process itself?