MatthiasMargot / typegen

Generate source-code types from a swagger-specification file
MIT License
1 stars 1 forks source link

Provide possibility of logging output generated from typegen to the console instead of interacting with the file-system #19

Closed MatthiasMargot closed 3 years ago

MatthiasMargot commented 3 years ago

This is necessary to support the following use-cases:

One proposal is to add an optional flag which instructs the tool not to write the generated output to the file-system but to instead log it back to the console:

typegen input.json --log

# take the output and do something additional with it
# such as appending it to an already existing file
typegen input.json --log >> outpu.ts