Skip to content

Commit

Permalink
Merge pull request #45 from gisaia/feat/total_index_count
Browse files Browse the repository at this point in the history
Print the total number of hits from all indices
  • Loading branch information
WilliGautier authored Nov 29, 2024
2 parents 73ecba0 + f1d508b commit 79b79b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arlas/cli/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def list_indices():
tab = PrettyTable(indices[0], sortby="name", align="l")
tab.add_rows(indices[1:])
print(tab)
print(f"Total count: {sum([int(index_info[2]) for index_info in indices[1:]])}")


@indices.command(help="Describe an index")
Expand Down

0 comments on commit 79b79b7

Please sign in to comment.