godaddy-wordpress / godaddy-wordpress/pagely-atomic-client

Invalid JSON produced by apps:create

Open
#38 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Description

When using `atomic apps:create` the output includes this line at the end:

```
[apps:create] Time: 8.48 seconds, Memory: 6.00mb
```

This makes the output invalid JSON and cause `jq` to give an `invalid string literal` error when the output is passed as a variable like this:

```bash
app_json_object=$( atomic apps:create "$account_id" "$site_url" "$site_url" )

app_id=$( jq '.[ "id" ]' <<< "$app_json_object" )
```

I think that last line shouldn't be added to the output, perhaps only being added if a some kind of a debug flag is used.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.