microsoft / typespec

https://typespec.io/
MIT License
4.1k stars 193 forks source link

Implement communication layer between cadl emitter and language specific process #616

Open timotheeguerin opened 2 years ago

timotheeguerin commented 2 years ago

Provide a way for the intermediate codemodel to be sent to the language specific process.

This is not the IPC Layer, this is to work with the current intermediate model where we have hybrid typescript and language sepcific logic.

Options for implementing this:

  1. Write file to disk, start external process passing the file to it autorest-python --cadl-codemodel=/tmp/cadlcodemode.yaml
  2. Start RPC process similar to autorest and send file via rpc
markcowl commented 2 years ago

estimate: 5