Git Product home page Git Product logo

Comments (3)

drwpow avatar drwpow commented on May 22, 2024

This would be a good feature! Would love a PR from anyone able to provide it.

from openapi-typescript.

jfsiii avatar jfsiii commented on May 22, 2024

@drwpow Are the docs wrong or do I misunderstand them?

One issue with printing to stdout is the This library has been ... & 🤞 Loading spec ... lines currently go to stdout, which puts them in the output file, e.g.

> swagger-to-ts https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json > types.ts
> cat types.ts
✨ swagger-to-ts 2.0
This library has been updated to 2.0 with improved generation. If you experience issues you can use the deprecated v1 with `npx @manifoldco/swagger-to-ts@1 …`
🤞 Loading spec from https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json…

Should those lines only be printed to stdout if the output flag/alias is given? I can't immediately think of a way to display to the screen and still support pipes. LMK if you have any ideas/suggestions.

from openapi-typescript.

drwpow avatar drwpow commented on May 22, 2024

@drwpow Are the docs wrong or do I misunderstand them?

Sorry; I was unclear. Yes, the docs are wrong—it doesn’t write to stdout, and I don’t think it ever has.

This isn’t by design, just oversight. I think it may have been a behavior I had planned on implementing but never did. I’m in solid agreement that stdout should be supported, and it should be the default behavior without the -o flag.

from openapi-typescript.

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.