File and text differ with multiple output formats
Project description
diff-cli
File and text differ with multiple output formats.
Install
pip install diff-cli
Usage
# Compare files
diff-cli files file1.txt file2.txt
# Compare text strings
diff-cli text "hello world" "hello there"
# Compare directories
diff-cli dirs dir1/ dir2/
# Output formats
diff-cli files a.txt b.txt --unified # Default
diff-cli files a.txt b.txt --side-by-side # Two-column
diff-cli files a.txt b.txt --context # Context format
diff-cli files a.txt b.txt --minimal # Changes only
diff-cli files a.txt b.txt --json # JSON for automation
# Options
diff-cli files a.txt b.txt -n 5 # 5 context lines
diff-cli files a.txt b.txt --ignore-whitespace
diff-cli files a.txt b.txt --ignore-case
diff-cli files a.txt b.txt --ignore-blank-lines
# Watch mode
diff-cli watch file1.txt file2.txt
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Files are identical |
| 1 | Files differ |
| 2 | Error (file not found, etc.) |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
diff_cli-0.1.0.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diff_cli-0.1.0.tar.gz.
File metadata
- Download URL: diff_cli-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d8dd2d4e32fdbefa87ff007ca5b6441acc747e50065f420bdb5fe89f2923437
|
|
| MD5 |
96ca057e9bcd2c63f85270c84c2410d9
|
|
| BLAKE2b-256 |
ba234582981c06352ca4b8bd5ccfd5b526ad24d335bf4e814140a2bb09eec911
|
File details
Details for the file diff_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: diff_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f579f27914a8a665297518754753a033efcde943ddbb1313f817ef70fd2b0961
|
|
| MD5 |
0c25558e741563d57096ac5be8a2623a
|
|
| BLAKE2b-256 |
69c0ac353fd470e6eac16ec7464d923e539522d71a7b73548139bf76b03463ae
|