LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

Direct informational logs from docker script to STDERR #48

Closed tylercunnion closed 4 years ago

tylercunnion commented 4 years ago

Since the docker script writes the swagger yaml to STDOUT (and since the docker container can't access the system clipboard), I want to be able to use it like:

bash reslang-docker.sh ~/code/api-specs/auto-import-api/ > ~/code/api-specs/auto-import-api/auto-import.yaml

But that currently echoes the opening log lines of the wrapper script into my yaml. This change redirects those messages to STDERR and leaves STDOUT clean (this seems appropriate as they are "diagnostic messages").