浏览代码

cmd_srv: subcommand to print pre-processor defines

Daniel-Constantin Mierla 5 年之前
父节点
当前提交
635f101837
共有 1 个文件被更改,包括 18 次插入1 次删除
  1. 18 1
      kamcli/commands/cmd_srv.py

+ 18 - 1
kamcli/commands/cmd_srv.py

@@ -81,4 +81,21 @@ def srv_info(ctx):
 
     \b
     """
-    command_ctl(ctx, 'core.version')
+    command_ctl(ctx, 'core.version')
+
+##
+#
+#
[email protected]('ppdefines', short_help='Show pre-processor defines')
[email protected]('full', '--full', is_flag=True,
+            help='Show full format of the records.')
+@pass_context
+def srv_ppdefines(ctx, full):
+    """Show pre-processor defines
+
+    \b
+    """
+    if full:
+        command_ctl(ctx, 'core.ppdefines_full')
+    else:
+        command_ctl(ctx, 'core.ppdefines')