/gendiff

Primary LanguagePython

Github Actions Status Maintainability Test Coverage Actions Status

Generate Difference CLI

Generate Difference Script allows you find the difference between two files in .json or .yaml/.yml formats.

The output may be given in formats:

  1. Standard - the output shown as a tree with a difference between nodes. Standard output used as default.
  2. Plain - output shown as a multiple strings. Use key -f plain or --format plain in CLI to display in plain format.
  3. JSON - output shown in .json format. Use key -f json or --format json in CLI to display in plain format.

Installation

Run following command in Bash to install the script:

pip install --no-cache-dir --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple n8creator-gendiff

Examples of usage

1. Plain files with Standard format output (as a Tree)

asciicast

2. Nested files with Standard format output (as a Tree)

asciicast

3. Nested files with Plain format output (as a multiple strings)

asciicast

4. Nested files with JSON format output (standard JSON file)

asciicast