difii

command module
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 3 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳