mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
minor update
This commit is contained in:
parent
ea01b6d9ee
commit
d8c26fa666
1 changed files with 3 additions and 2 deletions
|
@ -148,7 +148,8 @@ def cmp() -> None:
|
||||||
print(json.dumps(differences, sort_keys=True, separators=(',', ':')))
|
print(json.dumps(differences, sort_keys=True, separators=(',', ':')))
|
||||||
|
|
||||||
elif args.quiet:
|
elif args.quiet:
|
||||||
[print(diff['name']) for diff in differences]
|
for diff in differences:
|
||||||
|
print(diff['name'])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
from .lib.nicelogger import Colors, support_color
|
from .lib.nicelogger import Colors, support_color
|
||||||
|
@ -178,6 +179,6 @@ def cmp() -> None:
|
||||||
}
|
}
|
||||||
|
|
||||||
for diff in differences:
|
for diff in differences:
|
||||||
style = diffstyles[diff.get('delta', 'equal')]
|
style = diffstyles[diff.get('delta', 'equal')] # type: ignore # mypy has issues with this line
|
||||||
|
|
||||||
print(f'{diff["name"]} {style["oldc"]}{diff["oldver"]}{c.normal} {style["symbol"]} {c.green}{diff["newver"]}{c.normal}')
|
print(f'{diff["name"]} {style["oldc"]}{diff["oldver"]}{c.normal} {style["symbol"]} {c.green}{diff["newver"]}{c.normal}')
|
||||||
|
|
Loading…
Add table
Reference in a new issue