瀏覽代碼

cmd_mtree: fixed function names to match command

Daniel-Constantin Mierla 6 年之前
父節點
當前提交
6b4c9f88a6
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      kamcli/commands/cmd_mtree.py

+ 4 - 4
kamcli/commands/cmd_mtree.py

@@ -51,13 +51,13 @@ def mtree_add(ctx, tname, coltprefix, coltvalue, dbtname, tprefix, tvalue):
 ##
 #
 #
[email protected]('rm', short_help='Remove a destination from dispatcher table')
[email protected]('rm', short_help='Remove a record from mtree table')
 @click.option('coltprefix', '--coltprefix', default='tprefix',
             help='Column name for prefix (default: "tprefix")')
 @click.argument('dbtname', metavar='<dbtname>')
 @click.argument('tprefix', metavar='<tprefix>')
 @pass_context
-def dispatcher_rm(ctx, coltprefix, dbtname, tprefix):
+def mtree_rm(ctx, coltprefix, dbtname, tprefix):
     """Remove a record from tree database table
 
     \b
@@ -72,7 +72,7 @@ def dispatcher_rm(ctx, coltprefix, dbtname, tprefix):
 ##
 #
 #
[email protected]('showdb', short_help='Show dispatcher records in database')
[email protected]('showdb', short_help='Show mtree records in database')
 @click.option('oformat', '--output-format', '-F',
                 type=click.Choice(['raw', 'json', 'table', 'dict']),
                 default=None, help='Format the output')
@@ -83,7 +83,7 @@ def dispatcher_rm(ctx, coltprefix, dbtname, tprefix):
 @click.argument('dbtname', metavar='<dbtname>')
 @click.argument('tprefix', nargs=-1, metavar='[<tprefix>]')
 @pass_context
-def dispatcher_showdb(ctx, oformat, ostyle, coltprefix, dbtable, tprefix):
+def mtree_showdb(ctx, oformat, ostyle, coltprefix, dbtable, tprefix):
     """Show details for records in mtree database table
 
     \b