Categorygithub.com/mkaraev/gendiff
repository
0.1.0
Repository: https://github.com/mkaraev/gendiff.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

Gendiff - JSON/YAML Diff Utility

Overview

This command-line utility generates the difference between two JSON or YAML files. It helps you compare configurations, settings, or any structured data stored in JSON or YAML format, providing clear and concise output highlighting the differences.

This project is given to students as a learning project in the Hexlet online platform

Installation

If you want to use it in your go projects:

go get github.com/mkaraev/[email protected]

If you want to use it as command line tool:

git clone [email protected]:mkaraev/gendiff.git
cd gendiff/
make build
./cmd/gendiff <path-to-file> <path-to-file>

Usage

Compares two configuration files and shows a difference.

Usage:
  gendiff [-h] [-f FORMAT] first_file second_file [flags]

Flags:
  -f, --format string   set format of output (default "stylish")
  -h, --help            help for gendiff