Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add aereal/jsondiff #7160

Merged
merged 2 commits into from Oct 18, 2022
Merged

Conversation

ponkio-o
Copy link
Sponsor Contributor

@ponkio-o ponkio-o commented Oct 18, 2022

#7160 aereal/jsondiff: functions to calculate JSON objects differences with gojq filter

$ aqua g -i aereal/jsondiff

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well. Please confirm if this package works well yourself as much as possible.

Command and output

$ jsondiff --help
Usage of /Users/username/.local/share/aquaproj-aqua/pkgs/github_release/github.com/aereal/jsondiff/v0.2.2/jsondiff_0.2.2_darwin_amd64.tar.gz/jsondiff:
  -exit-code
        exit with 1 if there were differences and 0 means no differences
  -ignore string
        gojq query to ignore the structure to calculate differences
  -only string
        gojq query to point the structure to calculate differences

If files such as configuration file are needed, please share them.

$ cat hoge1.json
{
    "hoge": "fuga"
}

$ cat hoge2.json
{
    "hoge": "fuga",
    "poyo": "poyo"
}
$ jsondiff hoge1.json hoge2.json
--- hoge1.json
+++ hoge2.json
@@ -1,4 +1,5 @@
 {
-  "hoge": "fuga"
+  "hoge": "fuga",
+  "poyo": "poyo"
 }

Reference

[aereal/jsondiff](https://github.com/aereal/jsondiff): functions to calculate JSON objects differences with gojq filter

```console
$ aqua g -i aereal/jsondiff
```

## How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

```console
$
```

If files such as configuration file are needed, please share them.

```
```

Reference

-
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Oct 18, 2022
@suzuki-shunsuke suzuki-shunsuke added this to the v3.77.0 milestone Oct 18, 2022
@suzuki-shunsuke
Copy link
Member

Thanks!

@suzuki-shunsuke suzuki-shunsuke merged commit 72c2a83 into aquaproj:main Oct 18, 2022
@suzuki-shunsuke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants