Commit 249d69a
committed
fix: JSON output for workflow update execute/result commands
- Return structured JSON error output when update fails in JSON mode
instead of returning a plain error that breaks -o json output
- Respect --no-json-shorthand-payloads flag when printing update results:
decode payloads with DefaultDataConverter when shorthand is enabled,
use MarshalProtoJSON for raw payloads when disabled
Fixes #952
Signed-off-by: wucm667 <stevenwucongmin@gmail.com>1 parent a6a4f86 commit 249d69a
1 file changed
Lines changed: 38 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
488 | 497 | | |
489 | 498 | | |
490 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
491 | 525 | | |
492 | 526 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
497 | 531 | | |
498 | 532 | | |
499 | 533 | | |
| |||
0 commit comments