Skip to content

Commit 4cc93cb

Browse files
committed
Add package-url-support for deltacode
Signed-off-by: ankit2001 <ankitchoudhary202.ac@gmail.com>
1 parent 6778882 commit 4cc93cb

10 files changed

Lines changed: 1740 additions & 0 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ docs/_build
4747
*.bak
4848
/.cache/
4949
/.settings/
50+
51+
#package-url
52+
/.eggs
53+
/.cache
54+
/src/packageurl_python.egg-info
55+
pip-selfcheck.json
56+
pyvenv.cfg
57+
.Python
58+
/.tox

src/deltacode/cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ def write_json(deltacode, outfile, all_delta_types=False):
5555
# TODO: add toggle for pretty printing
5656
simplejson.dump(results, outfile, iterable_as_array=True, indent=2)
5757
outfile.write('\n')
58+
59+
# Output delta_stats at cli
60+
status = deltacode.stats.to_dict()
61+
click.echo("\nDelta stats :\n")
62+
for stat, value in status.iteritems():
63+
click.echo("{} : {}".format(stat,value))
5864

5965

6066
def print_version(ctx, param, value):

0 commit comments

Comments
 (0)