Skip to content

Commit

Permalink
List out latest version tag at runs command
Browse files Browse the repository at this point in the history
* List out the latest version tag at `cmd runs` command.
* Rename table columns of `cmd runs` command to be consistent with
the UI.
  • Loading branch information
csordasmarton committed Mar 28, 2018
1 parent d507de8 commit 676e22c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libcodechecker/cmd/cmd_line_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,13 @@ def handle_list_runs(args):
print(CmdLineOutputEncoder().encode(results))

else: # plaintext, csv
header = ['Name', 'ResultCount', 'RunDate']
header = ['Name', 'Number of reports', 'Storage date', 'Version tag']
rows = []
for run in runs:
rows.append((run.name, str(run.resultCount), run.runDate))
rows.append((run.name,
str(run.resultCount),
run.runDate,
run.versionTag if run.versionTag else ''))

print(twodim_to_str(args.output_format, header, rows))

Expand Down

0 comments on commit 676e22c

Please sign in to comment.