https://github.com/debugtalk/xdiff
A cli tool to compare files, folders, and http response.
https://github.com/debugtalk/xdiff
compare-data compare-files diff http-response xdiff
Last synced: 2 months ago
JSON representation
A cli tool to compare files, folders, and http response.
- Host: GitHub
- URL: https://github.com/debugtalk/xdiff
- Owner: debugtalk
- License: mit
- Created: 2017-03-21T12:59:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-12T06:44:52.000Z (about 8 years ago)
- Last Synced: 2025-02-28T05:46:12.994Z (3 months ago)
- Topics: compare-data, compare-files, diff, http-response, xdiff
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XDiff
A CLI tool to compare data structures, files, folders, http responses, etc.
## Install
```bash
$ python setup.py install
```## Usage
```text
$ xdiff -h
usage: xdiff [-h] [--log-level LOG_LEVEL]
[--compare-files COMPARE_FILES [COMPARE_FILES ...]]
[--compare-folders COMPARE_FOLDERS [COMPARE_FOLDERS ...]]A CLI tool to compare data structures, files, folders, http responses, etc.
optional arguments:
-h, --help show this help message and exit
--log-level LOG_LEVEL
Specify logging level, default is INFO.
--compare-files COMPARE_FILES [COMPARE_FILES ...]
Specify origin file and new file to be compared.
--compare-folders COMPARE_FOLDERS [COMPARE_FOLDERS ...]
Specify origin folder and new folder to be compared.
```## Examples
Compare two files.
```text
$ xdiff --compare-files 20170410223650/200/slug111.json 20170410202558/200/slug111.json
```Compare files in two folders.
```text
$ xdiff --compare-folders 20170410223650 20170410202558
```Compare files in two folders, and ignore specified keys.
```text
$ xdiff --compare-folders 20170410223650 20170410202558 --ignore-keys 'overview, faq, cover, photo, uuid, photos'
```