This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-14
Channels
- # announcements (2)
- # aws (1)
- # babashka (18)
- # babashka-sci-dev (103)
- # beginners (165)
- # calva (51)
- # cider (8)
- # circleci (1)
- # clj-kondo (22)
- # clj-on-windows (2)
- # cljdoc (1)
- # cljfx (31)
- # cljs-dev (16)
- # clojure (81)
- # clojure-europe (71)
- # clojure-nl (7)
- # clojure-uk (11)
- # clojurescript (20)
- # code-reviews (26)
- # conjure (1)
- # contributions-welcome (1)
- # core-async (15)
- # cursive (8)
- # datomic (8)
- # defnpodcast (2)
- # eastwood (24)
- # emacs (10)
- # events (1)
- # fulcro (4)
- # funcool (31)
- # graalvm (43)
- # graphql (8)
- # honeysql (9)
- # introduce-yourself (1)
- # jobs (12)
- # kaocha (3)
- # lsp (28)
- # malli (4)
- # meander (4)
- # membrane (7)
- # off-topic (64)
- # other-languages (3)
- # pedestal (1)
- # polylith (31)
- # portal (5)
- # re-frame (4)
- # reitit (1)
- # releases (5)
- # rum (2)
- # schema (2)
- # sci (34)
- # shadow-cljs (21)
- # vscode (1)
do you have an idea if I can make a simple ui with a dropdown/ some completion thing for some elements with bb? It's for windows users else I'd consider dmenu
If you're looking for a UI app I would use either httpkit (webserver in bb) + HTML or use #nbb (node.js) with Ink (react in the terminal)
(ns script
(:require ["ink" :refer [render]]
["ink-select-input$default.default" :as SelectInput]
[reagent.core :as r]))
(def items (clj->js [{:label "First"
:value "first"}
{:label "Second"
:value "second"}]))
(defn handle-select [i]
(js/console.log i)
(js/process.exit 0))
(defn select []
[:> SelectInput {:items items :onSelect handle-select}])
(render (r/as-element [select]))
package.json:
{
"dependencies": {
"ink": "^3.2.0",
"ink-select-input": "^4.2.1",
"nbb": "^0.1.1",
"react": "^17.0.2"
}
}
Do you guys always shell out when using git in babashka? Any recommended patterns?
yeah that is what I’ve been doing so far, although I used mostly the clojure.java.shell/sh