From 027053b5a33e95e6f0bee81a8b758440e6bcc98e Mon Sep 17 00:00:00 2001 From: ankit2001 Date: Sat, 14 Mar 2020 03:13:15 +0530 Subject: [PATCH] Update .gitignore and Add limited delta status on cli Signed-off-by: ankit2001 --- .gitignore | 1 + src/deltacode/cli.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 383a6265..5cedda04 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ /Scripts /Lib /pip-selfcheck.json +/output.json /tmp .Python /include diff --git a/src/deltacode/cli.py b/src/deltacode/cli.py index fc3c0e48..0f323f44 100644 --- a/src/deltacode/cli.py +++ b/src/deltacode/cli.py @@ -55,6 +55,12 @@ def write_json(deltacode, outfile, all_delta_types=False): # TODO: add toggle for pretty printing simplejson.dump(results, outfile, iterable_as_array=True, indent=2) outfile.write('\n') + + # Output delta_stats at cli + status = deltacode.stats.to_dict() + click.echo("\nDelta stats :\n") + for stat, value in status.iteritems(): + click.echo("{} : {}".format(stat,value)) def print_version(ctx, param, value):