This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-29
Channels
- # announcements (35)
- # aws (40)
- # babashka (10)
- # beginners (119)
- # calva (25)
- # cider (13)
- # clj-kondo (15)
- # cljsrn (23)
- # clojure (205)
- # clojure-dev (3)
- # clojure-europe (15)
- # clojure-germany (3)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-uk (58)
- # clojurescript (193)
- # community-development (2)
- # conjure (147)
- # core-async (49)
- # cursive (47)
- # datomic (21)
- # duct (1)
- # fulcro (19)
- # graalvm (3)
- # graphql (1)
- # helix (3)
- # hoplon (11)
- # jackdaw (1)
- # joker (1)
- # juxt (5)
- # kaocha (1)
- # keechma (3)
- # lambdaisland (6)
- # local-first-clojure (27)
- # malli (5)
- # off-topic (41)
- # rdf (27)
- # re-frame (7)
- # reagent (15)
- # reitit (5)
- # rum (11)
- # shadow-cljs (157)
- # spacemacs (18)
- # sql (4)
- # xtdb (8)
I got a pleasant flash of a future where we pipe bb scripts with semantic, well-understood EDN sequences instead of plaintext https://twitter.com/jackrusher/status/1255405238586048512

Humm.... on Ubuntu 19.10 I tried babashka-0.0.89-linux-amd64.zip and babashka-0.0.89-linux-static-amd64.zip - both throw execptions and exit when used with "--nrepl-server"
Exception in thread "main" java.lang.NullPointerException
at clojure.string$starts_with_QMARK_.invokeStatic(string.clj:364)
at babashka.main$parse_opts$fn__15702.invoke(main.clj:130)
@bherrmann Thanks for the error report. I noticed now that this does work: bb --nrepl-server 1667
FYI: I'm using the newly exposed clojure.pprint/print-table to extract and display data from the mysql command line. (just in case anyone else is noodling with mysql)
(def table-as-str (:out (shell/sh "mysql" "-udba" "-pdba" "corp" "--column-names" "-e" "select * from company_settings_nodes limit 2")))
(def table-as-lines (str/split-lines table-as-str))
(def table-headers (str/split (first table-as-lines) #"\t"))
(def table-as-maps (map #(zipmap table-headers (str/split %1 #"\t")) (rest table-as-lines)))
(clojure.pprint/print-table table-headers table-as-maps)
| id | parent_node_id | short_name | value_data_type | is_value_optional | title | description | node_type |
|----+----------------+----------------+-----------------+-------------------+------------------+-------------+-----------|
| 1 | NULL | orders | NULL | 0 | Orders | NULL | CATEGORY |
| 2 | 1 | orders.packing | NULL | 0 | Packing Services | NULL | CATEGORY |
@bherrmann That's really awesome. Feel free to add to examples/
and doc/examples.md
.
@bherrmann I made an issue here, but I think I tagged the wrong guy: https://github.com/borkdude/babashka/issues/396
ok, yea in gitland I'm bherrmann7... PR is https://github.com/borkdude/babashka/pull/399