Apply basic colorization to diff
Review Request #11829 — Created Oct. 3, 2021 and updated — Latest diff uploaded
Add an option to the
rbt diff
command to
apply basic colorization to the output.
Therbt diff --color-diff
command highlights
removed lines in red and added lines in green.This review request includes the following:
- Utilizing pygments library, format the diff displayed
on terminal with basic colorization. - Add
--color-diff
option torbt diff
command.
- Created
test_diff.py
that contains test cases forrbt diff
command - Tested command arguments and formating the diff using pygments library.
Diff Revision 4
This is not the most recent revision of the diff. The latest diff is revision 20. See what's changed.
orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Commits
Files
rbtools/commands/diff.py |
---|