Fork me on GitHub
#babashka
<
2020-06-09
>
jkrasnay00:06:14

@borkdude Yes, that version works for me without the extra backslashes. Thanks!

viesti14:06:26

hmm, does babashka support System/console?

borkdude14:06:02

$ ./bb -e '(println "Type password:") (let [pw (.readPassword (System/console))] (String. pw))'
Type password:
<here is an icon of a key I could not copy paste>
"123"

🔑 2
borkdude14:06:21

The above should be possible with releases just posted to https://clojurians.slack.com/archives/CSDUA8S6B/p1591713855009900 (cc @viesti)

viesti14:06:33

awesome fast response time from feature request to implementation :D

borkdude14:06:32

Also seems to work on Windows:

C:\Users\borkdude\Downloads>bb "(println \"Type password:\") (String. (.readPassword (System/console)))"
Type password:
<nothing to see here>
"123"

borkdude14:06:37

Maybe babashka for me is just a tool to prepare my migration back to Windows 😉

😎 2
viesti16:06:14

works also on my (virtual) machine

viesti19:06:42

now getting greedy, I wonder if https://github.com/weavejester/hashp could work with bb... 🙂

viesti20:06:18

Converting the examples in this blog to use bb instead of bash + jq would be awesome I think :) https://medium.com/circuitpeople/aws-cli-with-jq-and-bash-9d54e2eabaf1

plins21:06:03

I took a look at the docs but didnt find an definitive answer lets say I want to use https://github.com/clj-commons/camel-snake-kebab in a babashka script (assuming its compatible with babashka), whats the easiest way to use it in the project? deps.edn + something?

borkdude21:06:27

So it should be able to run with the new binaries from master (https://clojurians.slack.com/archives/CSDUA8S6B/p1591737307011100) using the way shown in the linked script.