nijikokun / generate-schema

🧞 Convert JSON Objects to MySQL, JSON Schema, Mongoose, Google BigQuery, Swagger, and more.
MIT License
1.04k stars 136 forks source link

FEAT: add `--exit-code` & default to `0` #74

Open gregfenton opened 1 year ago

gregfenton commented 1 year ago

This is a BREAKING CHANGE.

The previous exit code for the process was 1, that is contrary to expected behaviours for typical command line apps where 0 indicates success. To get the previous behaviour, simply specify "--exit-code 1" or "-x 1"