Skip to content

Commit e3b93ee

Browse files
feat: suggestion - print total number of rows
1 parent 23071d8 commit e3b93ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/torusdk/cli/key.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,16 @@ def inventory(
204204
general_key_to_address: dict[str, str] = cast(
205205
dict[str, str], key_to_address
206206
)
207+
207208
print_table_from_plain_dict(
208209
general_key_to_address, ["Key", "Address"], context.console
209210
)
210211

212+
total = len(key_to_address)
213+
214+
# print total rows
215+
context.info(f"{total} row{'s' if total != 1 else ''}.")
216+
211217

212218
@key_app.command()
213219
def stakefrom(

0 commit comments

Comments
 (0)