Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
4205:17a8168966f9 | 4206:0f8ea0768a3b |
---|---|
29 APP_NAME_ALT = "jp" | 29 APP_NAME_ALT = "jp" |
30 APP_NAME_FILE = "libervia_cli" | 30 APP_NAME_FILE = "libervia_cli" |
31 CONFIG_SECTION = APP_COMPONENT.lower() | 31 CONFIG_SECTION = APP_COMPONENT.lower() |
32 PLUGIN_CMD = "commands" | 32 PLUGIN_CMD = "commands" |
33 PLUGIN_OUTPUT = "outputs" | 33 PLUGIN_OUTPUT = "outputs" |
34 #: All outputs are managed directly by the command, ``extra_outputs`` must be | |
35 #: specified. | |
36 OUTPUT_CUSTOM = "custom" | |
34 OUTPUT_TEXT = "text" # blob of unicode text | 37 OUTPUT_TEXT = "text" # blob of unicode text |
35 OUTPUT_DICT = "dict" # simple key/value dictionary | 38 OUTPUT_DICT = "dict" # simple key/value dictionary |
36 OUTPUT_LIST = "list" | 39 OUTPUT_LIST = "list" |
37 OUTPUT_LIST_DICT = "list_dict" # list of dictionaries | 40 OUTPUT_LIST_DICT = "list_dict" # list of dictionaries |
38 OUTPUT_DICT_DICT = "dict_dict" # dict of nested dictionaries | 41 OUTPUT_DICT_DICT = "dict_dict" # dict of nested dictionaries |
41 OUTPUT_XML = "xml" # XML node (as unicode string) | 44 OUTPUT_XML = "xml" # XML node (as unicode string) |
42 OUTPUT_LIST_XML = "list_xml" # list of XML nodes (as unicode strings) | 45 OUTPUT_LIST_XML = "list_xml" # list of XML nodes (as unicode strings) |
43 OUTPUT_XMLUI = "xmlui" # XMLUI as unicode string | 46 OUTPUT_XMLUI = "xmlui" # XMLUI as unicode string |
44 OUTPUT_LIST_XMLUI = "list_xmlui" # list of XMLUI (as unicode strings) | 47 OUTPUT_LIST_XMLUI = "list_xmlui" # list of XMLUI (as unicode strings) |
45 OUTPUT_TYPES = ( | 48 OUTPUT_TYPES = ( |
49 OUTPUT_CUSTOM, | |
46 OUTPUT_TEXT, | 50 OUTPUT_TEXT, |
47 OUTPUT_DICT, | 51 OUTPUT_DICT, |
48 OUTPUT_LIST, | 52 OUTPUT_LIST, |
49 OUTPUT_LIST_DICT, | 53 OUTPUT_LIST_DICT, |
50 OUTPUT_DICT_DICT, | 54 OUTPUT_DICT_DICT, |