https://github.com/ne-sachirou/diff-with-json
diff with JSON structure.
https://github.com/ne-sachirou/diff-with-json
crystal crystal-language diff json
Last synced: 3 months ago
JSON representation
diff with JSON structure.
- Host: GitHub
- URL: https://github.com/ne-sachirou/diff-with-json
- Owner: ne-sachirou
- License: mit
- Created: 2017-01-30T10:08:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T23:38:32.000Z (9 months ago)
- Last Synced: 2025-03-31T07:11:12.068Z (6 months ago)
- Topics: crystal, crystal-language, diff, json
- Language: Crystal
- Size: 18.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
diff-with-json
==
diff with JSON structure.[](https://travis-ci.org/ne-sachirou/diff-with-json)
Installation
--
### Pre-requiments
- diff or [colordiff](http://www.colordiff.org/)
- [jq](https://stedolan.github.io/jq/)### Download a binary
Download a binary from [releases](https://github.com/ne-sachirou/diff-with-json/releases) and put it into PATH.### Build from source
```sh
git clone --depth=1 git@github.com:ne-sachirou/diff-with-json.git
cd diff-with-json
make build install
```Usage
--
```
diff-with-json [OPTIONS] FILES...diff with JSON structure.
Example:
diff-with-json -L a.json -L b.json /tmp/a /tmp/bOptions:
-u, --unified
-L LABEL, --label=LABEL Use LABEL instead of file name.
-h, --help Output this help.
```Tips: Use with SVN. `svn diff --diff-cmd diff-with-json`
Development
--
### Pre-requiments
- [Crystal](https://crystal-lang.org/)Building for Linux
- [Docker](https://www.docker.com/)
Building for Mac OS X
- Mac OS X
- Xcode Command Line Tool### Tests
Run `make test` before commit.### Editing README
Please Edit src/README.md.ecr then `make build`.Contributing
--
1. Fork it ( https://github.com/ne-sachirou/diff-with-json/fork )
2. Create your feature branch (git checkout -b my_new_feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my_new_feature)
5. Create a new Pull RequestContributors
--
- [[ne-sachirou]](https://github.com/ne-sachirou) ne_Sachirou - creator, maintainer