Description
Describe the request
Please provide a consistent gRPC interface for client streaming requests with stdout/stderr.
Clients have to use two different styles of APIs:
-
out_stream
ANDerr_stream
are optionally part of every response chunk:- Compile (
CompileResponse
):arduino-cli/rpc/cc/arduino/cli/commands/v1/compile.proto
Lines 99 to 103 in 77222ec
- Upload using a programmer (
UploadUsingProgrammerResponse
):arduino-cli/rpc/cc/arduino/cli/commands/v1/upload.proto
Lines 120 to 125 in 77222ec
- Burn bootload (
BurnBootloaderResponse
):arduino-cli/rpc/cc/arduino/cli/commands/v1/upload.proto
Lines 152 to 157 in 77222ec
- Compile (
-
out_stream
ORerr_stream
OR theresult
is part of the response message:- Upload (
UploadResponse
):arduino-cli/rpc/cc/arduino/cli/commands/v1/upload.proto
Lines 64 to 73 in 77222ec
- Upload (
Providing the same dev experience for "similar" APIs would be highly appreciated downstream. Thank you!
Describe the current behavior
There is no consistent API for client streaming requests with stdout/stderr props.
Arduino CLI version
0.35.0-rc.7
Operating system
N/A
Operating system version
n/a
Additional context
No response
Issue checklist
- I searched for previous requests in the issue tracker
- I verified the feature was still missing when using the nightly build
- My request contains all necessary details