diff libervia/cli/constants.py @ 4206:0f8ea0768a3b

cli (call): implement GUI output: ``call`` commands now handle various output. Beside the original one (now named ``simple``), a new ``gui`` one display a full featured GUI (make with Qt). PyQt 6 or more needs to be installed. rel 427
author Goffi <goffi@goffi.org>
date Sun, 11 Feb 2024 23:20:24 +0100
parents 849721e1563b
children 0d7bb4df2343
line wrap: on
line diff
--- a/libervia/cli/constants.py	Thu Jan 18 23:29:25 2024 +0100
+++ b/libervia/cli/constants.py	Sun Feb 11 23:20:24 2024 +0100
@@ -31,6 +31,9 @@
     CONFIG_SECTION = APP_COMPONENT.lower()
     PLUGIN_CMD = "commands"
     PLUGIN_OUTPUT = "outputs"
+    #: All outputs are managed directly by the command, ``extra_outputs`` must be
+    #: specified.
+    OUTPUT_CUSTOM = "custom"
     OUTPUT_TEXT = "text"  # blob of unicode text
     OUTPUT_DICT = "dict"  # simple key/value dictionary
     OUTPUT_LIST = "list"
@@ -43,6 +46,7 @@
     OUTPUT_XMLUI = "xmlui"  # XMLUI as unicode string
     OUTPUT_LIST_XMLUI = "list_xmlui"  # list of XMLUI (as unicode strings)
     OUTPUT_TYPES = (
+        OUTPUT_CUSTOM,
         OUTPUT_TEXT,
         OUTPUT_DICT,
         OUTPUT_LIST,