glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL
https://app.quicktype.io
Apache License 2.0
12.27k stars 1.07k forks source link

How to set number of indents using CLI? #1651

Open rubenaster opened 3 years ago

rubenaster commented 3 years ago

Hey folks,

first of all: thanks A LOT for your awesome work! It helps saving so much pain and time!!

So, I've mainly used your web UI to generate Dart classes and now I went over to using CLI with Windows PowerShell. And what I noticed is that the indents went from 2 generated on web to 4 generated with CLI.

image

Is there a way to set the indents using the CLI command? I've already checked quicktype --help but didn't find the answer.

Thanks a lot,

Ruben

rubenaster commented 3 years ago

Yeah... of course the indents when pasting the code from web are already adjusted by the IDE :)

But still, is there a way to adjust the indents so we can have our auto-generation work and use the generated files directly? Or would we need to adjust the Quicktype code itself for that?

dvdsgl commented 3 years ago

We would need to add an option to quicktype to do this.