瀏覽代碼

cmd_htable: command to list the hash tables

Daniel-Constantin Mierla 5 年之前
父節點
當前提交
2b7945955d
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      kamcli/commands/cmd_htable.py

+ 12 - 0
kamcli/commands/cmd_htable.py

@@ -119,3 +119,15 @@ def htable_reload(ctx, htname):
         <htname> - the name of hash table
         <htname> - the name of hash table
     """
     """
     command_ctl(ctx, "htable.reload", [htname])
     command_ctl(ctx, "htable.reload", [htname])
+
+
[email protected](
+    "list-tables", short_help="List the hash tables",
+)
+@pass_context
+def htable_list_tables(ctx):
+    """List the hash tables
+
+    \b
+    """
+    command_ctl(ctx, "htable.listTables", [])