Skip to content

Commit

Permalink
Version 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
martincjespersen committed Nov 12, 2022
1 parent f8b6b1f commit fb2d90b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions loglicense/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,15 @@ def check(
f"and actual coverage: {license_coverage}%"
)

if show_report:
pretty_print = tabulate(results, tablefmt="pipe", headers="firstrow")
pretty_print = tabulate(results, tablefmt="pipe", headers="firstrow")

if output_file:
output_filepath = Path(output_file)
output_filepath.touch(exist_ok=True)
output_filepath.write_text(f"Found {len(results)-1} dependencies")
output_filepath.write_text(coverage_score)
output_filepath.write_text(pretty_print)
else:
elif show_report:
print(f"Found {len(results)-1} dependencies")
print(coverage_score)
print(pretty_print)
Expand Down

0 comments on commit fb2d90b

Please sign in to comment.