temporalio / cli

Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal
https://docs.temporal.io/cli
MIT License
243 stars 32 forks source link

[Feature Request] Add `ResultEncoding` when printing workflow results that cannot be converted to shorthand JSON #547

Closed cretz closed 1 month ago

cretz commented 2 months ago

Describe the solution you'd like

Today users get:

Result:
  Status  COMPLETED
  Result  {"metadata":{"encoding":"YmluYXJ5L3NuYXBweQ=="},"data":"NdAKFgoIZW5jb2RpbmcSCmpzb24vcGxhaW4SGyJSZWNlaXZlZCBQbGFpbiB0ZXh0IGlucHV0Ig=="}

We need to tell them that the result is encoded and with what encoding if we can. So maybe something like:

Result:
  Status          COMPLETED
  Result          {"metadata":{"encoding":"YmluYXJ5L3NuYXBweQ=="},"data":"NdAKFgoIZW5jb2RpbmcSCmpzb24vcGxhaW4SGyJSZWNlaXZlZCBQbGFpbiB0ZXh0IGlucHV0Ig=="}
  ResultEncoding  Encoded with 'binary/snappy` encoding