Code Monkey home page Code Monkey logo

Comments (4)

gromgit avatar gromgit commented on August 16, 2024

I dunno. From my POV, jo is meant to [a] be simple, and [b] generate machine-readable output by default, while making concessions to human readability on the rare occasion it's needed.

It's also mildly annoying to do the following dance:

$ jo <something_that_generates_copious_output>
# ARGH! A thousand lines of pretty-printed text!
$ jo <something_that_generates_copious_output> | less
# ARGH! Everything's squished together!
$ jo -p <something_that_generates_copious_output> | less

So yeah, I'd much rather have jo not guess what kind of output I want.

from jo.

jpmens avatar jpmens commented on August 16, 2024

I agree with @gromgit. At best we could introduce an environment variable (JO_PRETTY) which, when set to 1 or true or something, would automate pretty-printing, but that's likely also overkill as you can easily do this with a small script.

from jo.

Sashank999 avatar Sashank999 commented on August 16, 2024

I think we can add -pretty command line option rather than environment variables. It is a long option so it won't be mistaken, instead of something like -p.

from jo.

jpmens avatar jpmens commented on August 16, 2024

-p already exists; there is no need to make a long option of it.

from jo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.