Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.24 KB

README.md

File metadata and controls

57 lines (48 loc) · 1.24 KB

difii

A CLI tool to diff 2 folders interactively.

Note

Work in progress.. difii is currently under development.

Install

go install github.com/enuesaa/[email protected]

Usage

$ difii --help
A CLI tool to diff 2 folders interactively.

Usage:
  difii <dir1> <dir2> [flags]

Flags:
      --help           Show help messages.
      --inspect        Inspect diffs.
  -i, --interactive    Use interactive prompt.
      --only strings   Specify filename to compare.
      --version        Show version information.

Commands

$ difii <dir-a> <dir-b> # this prints diffs per file
$ difii <dir-a> <dir-b> --inspect # this prints diffs detail

Print diffs per file

$ difii ./testdata/random-a ./testdata/random-b
-5 +4 diffs in main.md

Print diffs detail

--inspect flag shows diff detail.

$ difii ./testdata/random-a ./testdata/random-b --inspect
main.md:2   - KLMNOPQRST
main.md:5   - QRSTUVWXYZA
main.md:4   + QRSTUVWXYY
main.md:7   - MNOPQRSTUVWXYZ
main.md:8   - ABCDEFGHIJ
main.md:6   + MNOOPQRSTUVWXYZ
main.md:7   + ABCDEFGHJI
main.md:10  - UVWXYZABCD
main.md:9   + UVWXYZABCC

Development Plan

  • [cli] filter files interactively.
  • [cli] print diffs like tree command.