Giter Site home page Giter Site logo

Command line options about openapi-ts HOT 7 CLOSED

mlankamp avatar mlankamp commented on May 23, 2024
Command line options

from openapi-ts.

Comments (7)

jordanshatford avatar jordanshatford commented on May 23, 2024

@mlankamp you can use --format false or --no-format. (Same with lint)

from openapi-ts.

mlankamp avatar mlankamp commented on May 23, 2024

But format & lint are default false? I was a bit confused

from openapi-ts.

jordanshatford avatar jordanshatford commented on May 23, 2024

But format & lint are default false? I was a bit confused

format is default to true, lint to false. You are right, the --no-format option is irrelevant. Will keep this issue open (I would no be against removing both --no-x as you can do --format false instead

from openapi-ts.

mlankamp avatar mlankamp commented on May 23, 2024

I like the --x true/false because it's clearer

from openapi-ts.

mlankamp avatar mlankamp commented on May 23, 2024

So change the readme to:

...
-    --format                  Process output folder with formatter?
-    --no-format               Disable processing output folder with formatter
+    --format <value>          Process output folder with formatter? [true, false] (default: true)
-    --lint                    Process output folder with linter?
-    --no-lint                 Disable processing output folder with linter
+    --lint <value>            Process output folder with linter? [true, false] (default: false)
-    --write                   Write files to disk? (used for testing)
-    --no-write                Skip writing files to disk (used for testing)
+    --write <value>           Write files to disk? (used for testing) [true, false] (default: true)
...

from openapi-ts.

jordanshatford avatar jordanshatford commented on May 23, 2024

@mlankamp just went through testing the cli/config. You cannot actually do --format false via the CLI. So if someone wants to disabled either explicitly on the CLI they have to use --no-format.

cc: @mrlubos this can be closed as such

from openapi-ts.

jordanshatford avatar jordanshatford commented on May 23, 2024

See above comment, we need to keep these additional CLI options to have full CLI support.

from openapi-ts.

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.