cmd2 2.5.10__py3-none-any.whl → 2.6.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.
- cmd2/__init__.py +11 -22
- cmd2/ansi.py +78 -91
- cmd2/argparse_completer.py +109 -132
- cmd2/argparse_custom.py +199 -217
- cmd2/clipboard.py +2 -6
- cmd2/cmd2.py +447 -521
- cmd2/command_definition.py +34 -44
- cmd2/constants.py +1 -3
- cmd2/decorators.py +47 -58
- cmd2/exceptions.py +23 -46
- cmd2/history.py +29 -43
- cmd2/parsing.py +59 -84
- cmd2/plugin.py +6 -10
- cmd2/py_bridge.py +20 -26
- cmd2/rl_utils.py +45 -69
- cmd2/table_creator.py +83 -106
- cmd2/transcript.py +55 -59
- cmd2/utils.py +143 -176
- {cmd2-2.5.10.dist-info → cmd2-2.6.0.dist-info}/METADATA +34 -17
- cmd2-2.6.0.dist-info/RECORD +24 -0
- {cmd2-2.5.10.dist-info → cmd2-2.6.0.dist-info}/WHEEL +1 -1
- cmd2-2.5.10.dist-info/RECORD +0 -24
- {cmd2-2.5.10.dist-info → cmd2-2.6.0.dist-info/licenses}/LICENSE +0 -0
- {cmd2-2.5.10.dist-info → cmd2-2.6.0.dist-info}/top_level.txt +0 -0
cmd2/clipboard.py
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
"""
|
3
|
-
This module provides basic ability to copy from and paste to the clipboard/pastebuffer.
|
4
|
-
"""
|
1
|
+
"""Module provides basic ability to copy from and paste to the clipboard/pastebuffer."""
|
5
2
|
|
6
3
|
import typing
|
7
4
|
|
@@ -13,8 +10,7 @@ def get_paste_buffer() -> str:
|
|
13
10
|
|
14
11
|
:return: contents of the clipboard
|
15
12
|
"""
|
16
|
-
|
17
|
-
return pb_str
|
13
|
+
return typing.cast(str, pyperclip.paste())
|
18
14
|
|
19
15
|
|
20
16
|
def write_to_paste_buffer(txt: str) -> None:
|