Giter Site home page Giter Site logo

Optional plain JSON result about jwt-cli HOT 3 OPEN

mike-engel avatar mike-engel commented on September 13, 2024
Optional plain JSON result

from jwt-cli.

Comments (3)

mike-engel avatar mike-engel commented on September 13, 2024

Sorry for the late reply @hingehe. Can you tell me a bit more about your programming tool? Is it a TTY or not? Anything else I could look for to strip color and formatting?

from jwt-cli.

hingehe avatar hingehe commented on September 13, 2024

I am working with a EAI Tool called "inubit".
grafik

I execute your script with a "CLI Execution module" on a linux system (so I think it is a TTY-Tool in your sense). The result (refer my previous post) has weird characters. My tool tries to wrap everything into an XML structure. This fails, whit these color coding characters, because of charset foo.
I fixed the problem with replace (regular expressions) in my CLI script, so I remove those characters. But this is of course not the best option. An optional parameter to suppress any color codings would be perfect for my needs.

from jwt-cli.

mike-engel avatar mike-engel commented on September 13, 2024

Hi again @hingehe, sorry for the delayed response. The output crate I use is bunt, which uses termcolor itself. bunt will automatically print to stdout with the auto color mode. In that mode, output on windows won't be colored, but also if the environment variable NO_COLOR is defined, then it won't output colors.

That being said, can you try defining NO_COLOR in your environment and see if that works for you? If it does, I'll find a place to document it 😄

from jwt-cli.

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.