this post was submitted on 10 Dec 2023
102 points (95.5% liked)

Programming

18609 readers
60 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

TL;DR: It would be cool if all CLI apps supported JSON output, but in the meantime we can use jc

you are viewing a single comment's thread
view the rest of the comments
[–] ishanpage@programming.dev 30 points 1 year ago* (last edited 1 year ago) (4 children)

While jc is a great tool, and I'm definitely a fan, I believe the real solution to the overarching problem lies in a paradigm shift: see nushell

[–] starman@programming.dev 7 points 1 year ago (1 children)

I actually use both! It's so nice to just jc git log and then work with the data using nushell :)

[–] dukk@programming.dev 1 points 1 year ago

Oh that’s smart! And then nushell just handles the data for you…I might try that!

[–] LPThinker@lemmy.world 5 points 1 year ago

Nushell is so great! I’ve been using it for a couple years. It has completely replaced my need for tools like grep, sed, awk, etc. and because it handles JSON and so many other data formats natively I rarely even need to think about parsing.

[–] lupec@lemm.ee 5 points 1 year ago* (last edited 1 year ago)

I've always struggled with actually retaining knowledge on how to use the myriad tools you'd usually need to extract/parse data (awk, sed and friends) and this was a game changer. I don't quite daily drive it just yet but when I do need it, it's vastly more ergonomic.

[–] yetAnotherUser 2 points 1 year ago

Thank you for bringing up nushell, had never heard of it