Skip to content

Commit cf6662e

Browse files
committed
Add Delta stats at cli
1 parent 6778882 commit cf6662e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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)