cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open cretz opened this issue 1 year ago • 0 comments

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

cretz avatar May 02 '24 16:05 cretz