You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
# Diffr - Compare Directory Content Differences with Ease
1
+
# Diffr - Simplifying Directory and File Content Comparison
2
2
3
3
4
-
Diffr is an open-source web-based tool designed to make comparing content differences between two directoriesa simple and intuitive process. Whether you're a developer comparing source code, a designer comparing image assets, or anyone dealing with files, Diffr provides a user-friendly interface to quickly identify changes and similarities between directories.
4
+
Diffr is an open-source web-based tool designed to make comparing content differences between two directories, and even files, a simple and intuitive process. Whether you're a developer comparing source code, a designer comparing image assets, or anyone dealing with files, Diffr provides a user-friendly interface to quickly identify changes and similarities between directories and files.
5
5
6
6
Visit the project on GitHub: [https://github.com/imrajdas/diffr](https://github.com/imrajdas/diffr)
7
7
@@ -27,10 +27,10 @@ go get -u github.com/imrajdas/diffr
27
27
28
28
## Usage
29
29
30
-
Diffr simplifies the process of comparing content differences between two directories. The basic usage is as follows:
30
+
Diffr simplifies the process of comparing content differences between two directories or files. The basic usage is as follows:
31
31
32
32
```bash
33
-
diffr [dir1] [dir2] [flags]
33
+
diffr [dir1/file1] [dir2/file2] [flags]
34
34
```
35
35
36
36
You can also use the command to access specific features:
@@ -52,7 +52,7 @@ Diffr provides the following flags to customize its behavior:
52
52
53
53
-`-a, --address string`: Set the address for the web server to listen on. The default is `http://localhost`.
54
54
-`-h, --help`: Display help information about Diffr.
55
-
-`-p, --port int`: Set the port for the web server to listen on. The default is `8080`.
55
+
-`-p, --port int`: Set the port for the web server to listen on. The default is `8675`.
56
56
57
57
## Examples
58
58
@@ -62,6 +62,9 @@ Here are some examples of how to use Diffr:
62
62
# Compare contents of two directories
63
63
diffr /path/to/dir1 /path/to/dir2
64
64
65
+
# Compare contents of two files
66
+
diffr /path/to/file1 /path/to/file2
67
+
65
68
# Compare contents with custom server address and port
66
69
diffr /path/to/dir1 /path/to/dir2 -a http://127.0.0.1 -p 9000
67
70
```
@@ -76,4 +79,4 @@ Diffr is released under the [Apache](LICENSE). You are free to use, modify, and
76
79
77
80
---
78
81
79
-
Diffr makes directory content comparison hassle-free, allowing you to focus on identifying differences rather than dealing with complex tools. Give it a try, and make directory comparison a breeze!
82
+
Diffr makes directory and file content comparison hassle-free, allowing you to focus on identifying differences rather than dealing with complex tools. Give it a try, and make directory and file comparison a breeze!
Copy file name to clipboardExpand all lines: pkg/cmd/root/root.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@ import (
7
7
)
8
8
9
9
varrootCmd=&cobra.Command{
10
-
Use: "diffr [dir1] [dir2]",
10
+
Use: "diffr [dir1/file1] [dir2/file2]",
11
11
Example: "diffr /path/to/dir1 /path/to/dir2",
12
12
Short: "A web-based content difference analyzer",
13
-
Long: `A web-based tool to compare content differences between two directories`+"\n"+`Find more information at: https://github.com/imrajdas/diffr`,
13
+
Long: `A web-based tool to compare content differences between two directories/files`+"\n"+`Find more information at: https://github.com/imrajdas/diffr`,
0 commit comments