Comcast / Comcast/plax

Support reading multi-line ("pretty") JSON from a cmd

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
8
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Need some option to enable a `cmd` to receive a single multi-line blob of JSON. Example use: AWS CLI, which seems to insist on emitting pretty JSON.

Example work-around:

```yaml
spec:
phases:
phase1:
steps:
- pub:
payload:
make:
name: awscli
type: cmd
config:
command: bash
doc: |
The AWS CLI insists on "pretty" JSON, which we
don't want. Here's a work-around using 'jq'.
args:
- '-c'
- 'aws iot describe-endpoint | jq -c'
- recv:
chan: mother
pattern:
success: true
- recv:
chan: awscli
pattern:
endpointAddress: "?addr"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.