This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-19
Channels
- # announcements (12)
- # aws (17)
- # babashka (6)
- # beginners (40)
- # cider (14)
- # cljs-dev (14)
- # cljsrn (8)
- # clojure (110)
- # clojure-europe (46)
- # clojure-italy (1)
- # clojure-nl (4)
- # clojure-spec (14)
- # clojure-sweden (3)
- # clojure-uk (29)
- # clojurescript (52)
- # conjure (68)
- # cursive (33)
- # datomic (9)
- # figwheel-main (11)
- # fulcro (97)
- # ghostwheel (1)
- # graalvm (2)
- # helix (53)
- # hoplon (13)
- # joker (6)
- # kaocha (1)
- # leiningen (2)
- # meander (28)
- # mid-cities-meetup (1)
- # observability (1)
- # off-topic (112)
- # pathom (6)
- # pedestal (3)
- # re-frame (16)
- # reagent (16)
- # reitit (2)
- # shadow-cljs (27)
- # spacemacs (2)
- # sql (26)
- # testing (3)
- # utah-clojurians (3)
- # vim (2)
- # xtdb (32)
i take it babshka curl doesn't have the equivalent of body-params? whats the simplist clojure to body method? clj -> json -> str?
this is gonna be great. I knew procrastinating about learning bash was going to pay off
async pod function proposal: https://github.com/babashka/babashka.pods/tree/low-level-invoke#async feedback welcome
Hi! I find myself turning again and again to babashka
because life is indeed too short to remember how to parse command line options properly in bash. It's extremely powerful and flexible. I have two questions about the library:
1. Is there an accepted method of piping the result of a babashka script back to the current shell? I've used something like $ bb -o parse_cli_opts.clj -f -o some_option arg1 arg2 arg3 | source /dev/stdin
to do validation of inputs for a bash script that ultimately needs to run in the current shell because of what's on the $PATH, the CLI it uses, etc. The drawback of this approach is that piping to source /dev/stdin/
doesn't allow for TTY/interactive programs to pick up the command because source
isn't a TTY (my specific use case here is docker run -it
, but there are other potential examples).
2. Following existing bash conventions, are there plans to add something like .bbrc
or .bb_profile
where you can have a series of babashka
functions and scripts in a file and they're available for system-wide invocation?