Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/deltacode/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Comment on lines +60 to +63

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we break down the stats to handle factors as well?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what factors u want @MaJuRG, can u give me some examples??



def print_version(ctx, param, value):
Expand Down