项目作者: Justintime50

项目描述 :
Display a diff between two files in HTML.
高级语言: Python
项目地址: git://github.com/Justintime50/diff-tool.git
创建时间: 2019-12-12T23:07:35Z
项目社区:https://github.com/Justintime50/diff-tool

开源协议:MIT License

下载




# Diff Tool

Display a diff between two files in HTML.

Build Status
Coverage Status
PyPi
Licence

Showcase

Running this tool requires two files to compare. It will output the difference to an HTML file which can be viewed in a browser to see what changed between files.

Install

  1. # Install tool
  2. pip3 install diff-tool
  3. # Install locally
  4. make install

Usage

  1. Usage:
  2. diff-tool --file1 /path/to/file1.txt --file2 /path/to/file2.txt --output path/to/diff.html
  3. Options:
  4. -h, --help show this help message and exit
  5. -f1 FILE1, --file1 FILE1
  6. The path to the base file to compare a second file to.
  7. -f2 FILE2, --file2 FILE2
  8. The path to the second file compared to the base file.
  9. -o OUTPUT, --output OUTPUT
  10. The path/name to the output file where the diff will be stored.

Development

  1. # Get a comprehensive list of development tools
  2. make help
  3. # Run the tool locally
  4. venv/bin/python diff_tool/diff_files.py --help