robotcode-plugin 2.6.2__py3-none-any.whl → 2.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robotcode/plugin/__init__.py +1 -1
- robotcode/plugin/__version__.py +1 -1
- robotcode/plugin/click_helper/wrappable.py +26 -0
- {robotcode_plugin-2.6.2.dist-info → robotcode_plugin-2.7.0.dist-info}/METADATA +1 -1
- {robotcode_plugin-2.6.2.dist-info → robotcode_plugin-2.7.0.dist-info}/RECORD +6 -5
- {robotcode_plugin-2.6.2.dist-info → robotcode_plugin-2.7.0.dist-info}/WHEEL +1 -1
robotcode/plugin/__init__.py
CHANGED
robotcode/plugin/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.
|
|
1
|
+
__version__ = "2.7.0"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import click
|
|
2
|
+
|
|
3
|
+
# Set in the environment once a wrapper has been applied to the process tree.
|
|
4
|
+
# Prevents infinite re-exec recursion and lets an outer layer (e.g. the VS Code
|
|
5
|
+
# debug launcher applying its own wrapper) suppress the CLI/profile re-exec.
|
|
6
|
+
WRAPPER_APPLIED_ENV = "ROBOTCODE_WRAPPER_APPLIED"
|
|
7
|
+
|
|
8
|
+
_WRAPPABLE_ATTR = "__robotcode_wrappable__"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def wrappable(cmd: click.Command) -> click.Command:
|
|
12
|
+
"""Mark a CLI command as *wrappable*.
|
|
13
|
+
|
|
14
|
+
When a `wrapper` (session) command is configured, a wrappable command is
|
|
15
|
+
re-executed through it, because it executes Robot Framework (and may, for
|
|
16
|
+
example, need to run inside a specific X11/Wayland session). Commands that
|
|
17
|
+
do not execute Robot Framework - language server, discovery, libdoc, … -
|
|
18
|
+
must NOT be marked.
|
|
19
|
+
"""
|
|
20
|
+
setattr(cmd, _WRAPPABLE_ATTR, True)
|
|
21
|
+
return cmd
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def is_wrappable(cmd: click.Command) -> bool:
|
|
25
|
+
"""Return whether `cmd` was marked with :func:`wrappable`."""
|
|
26
|
+
return bool(getattr(cmd, _WRAPPABLE_ATTR, False))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robotcode-plugin
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.0
|
|
4
4
|
Summary: Some classes for RobotCode plugin management
|
|
5
5
|
Project-URL: Donate, https://opencollective.com/robotcode
|
|
6
6
|
Project-URL: Documentation, https://github.com/robotcodedev/robotcode#readme
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
robotcode/plugin/__init__.py,sha256=
|
|
2
|
-
robotcode/plugin/__version__.py,sha256=
|
|
1
|
+
robotcode/plugin/__init__.py,sha256=k1A4tMT6wJvwe3_TRohJuRkx0ZbSmsIOHdAjKfZVR20,16308
|
|
2
|
+
robotcode/plugin/__version__.py,sha256=EtKWW0Hnl5oWglRNH0HZigvcDT2FEs58ek8buJdwW1E,22
|
|
3
3
|
robotcode/plugin/_agent_detection.py,sha256=PVsBAxy_Xn_uefTBpBAGE-q3Z5CUxbhwp_z4Dcb_RL4,3606
|
|
4
4
|
robotcode/plugin/manager.py,sha256=ARNXtSbQTRktsbNQGLeU1fwtsK7GdstHa6OJaXuadrU,1098
|
|
5
5
|
robotcode/plugin/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
|
@@ -7,6 +7,7 @@ robotcode/plugin/specs.py,sha256=_Ws6A9CZoCTHdxx_5D8ifpj4tfwin4zYUYJ8WLhSO3U,588
|
|
|
7
7
|
robotcode/plugin/click_helper/aliases.py,sha256=NJZKyF6GOro52fjp728OZfqZ9EptNhiJvQBhunqIpzc,1628
|
|
8
8
|
robotcode/plugin/click_helper/options.py,sha256=eAU05TfOq93wVWkiYqw7BV6RrXAp1xw9jT6DsPRdZ_Y,11430
|
|
9
9
|
robotcode/plugin/click_helper/types.py,sha256=UAno_G-0uNdPfapGCvECwd0yghdEZXMMv4DIlUAKKsw,3679
|
|
10
|
-
|
|
11
|
-
robotcode_plugin-2.
|
|
12
|
-
robotcode_plugin-2.
|
|
10
|
+
robotcode/plugin/click_helper/wrappable.py,sha256=28FzkR4OO5lSi3_e35AKKZHQD2fD7Dr1DM4xkI_PrPg,1009
|
|
11
|
+
robotcode_plugin-2.7.0.dist-info/METADATA,sha256=nhcdSmiEo_iaj8ypA6GWvuXmUgOVcxLzG5w3TzB6_w0,2785
|
|
12
|
+
robotcode_plugin-2.7.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
13
|
+
robotcode_plugin-2.7.0.dist-info/RECORD,,
|