Browse Source

cmd_srv: subcommand to print pre-processor defines

Daniel-Constantin Mierla 5 years ago
parent
commit
635f101837
1 changed files with 18 additions and 1 deletions
  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')