فهرست منبع

cmd_config: added command to print aliases

Daniel-Constantin Mierla 6 سال پیش
والد
کامیت
b16731995c
1فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 10 1
      kamcli/commands/cmd_config.py

+ 10 - 1
kamcli/commands/cmd_config.py

@@ -2,6 +2,7 @@ import os
 import sys
 import sys
 import click
 import click
 from kamcli.cli import pass_context
 from kamcli.cli import pass_context
+from kamcli.cli import COMMAND_ALIASES
 
 
 @click.group('config', help='Manage the config file')
 @click.group('config', help='Manage the config file')
 @pass_context
 @pass_context
@@ -35,8 +36,16 @@ def config_show(ctx, sections):
 @cli.command('paths', short_help='Show the paths of configuration files')
 @cli.command('paths', short_help='Show the paths of configuration files')
 @pass_context
 @pass_context
 def config_paths(ctx):
 def config_paths(ctx):
-    """Show the patsh of configuration files for kamcli"""
+    """Show the paths of configuration files for kamcli"""
     print()
     print()
     print(ctx.gconfig_paths)
     print(ctx.gconfig_paths)
     print()
     print()
 
 
+
[email protected]('cmdaliases', short_help='Show the command aliases')
+@pass_context
+def config_cmdaliases(ctx):
+    """Show the command aliases"""
+    print()
+    print(COMMAND_ALIASES)
+    print()