serverwatcher 6.dev47__py3-none-any.whl → 6.dev49__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.
- serverwatcher/livecli.py +7 -9
- {serverwatcher-6.dev47.dist-info → serverwatcher-6.dev49.dist-info}/METADATA +1 -1
- {serverwatcher-6.dev47.dist-info → serverwatcher-6.dev49.dist-info}/RECORD +6 -6
- {serverwatcher-6.dev47.dist-info → serverwatcher-6.dev49.dist-info}/WHEEL +0 -0
- {serverwatcher-6.dev47.dist-info → serverwatcher-6.dev49.dist-info}/licenses/LICENSE +0 -0
- {serverwatcher-6.dev47.dist-info → serverwatcher-6.dev49.dist-info}/top_level.txt +0 -0
serverwatcher/livecli.py
CHANGED
|
@@ -426,21 +426,19 @@ class LiveCLI(cmd.Cmd):
|
|
|
426
426
|
|
|
427
427
|
async def run(self):
|
|
428
428
|
while True:
|
|
429
|
-
# print prompt (not buffered)
|
|
430
|
-
self.safePrint("> ", end="", write_buffer=False)
|
|
431
|
-
|
|
432
|
-
# read raw input
|
|
433
429
|
line = await asyncio.to_thread(self.read_line_raw)
|
|
434
430
|
line = line.strip()
|
|
435
431
|
if not line:
|
|
436
432
|
continue
|
|
437
433
|
|
|
438
|
-
#
|
|
439
|
-
|
|
440
|
-
|
|
434
|
+
# buffer the command (but not view commands)
|
|
435
|
+
buf = getattr(self, 'buffer', None)
|
|
436
|
+
if buf is not None and getattr(buf, 'enabled', False):
|
|
437
|
+
if not line.startswith('view'):
|
|
438
|
+
buf.captured.append(f"> {line}")
|
|
441
439
|
|
|
442
|
-
# print
|
|
443
|
-
self.safePrint(f"> {line}", write_buffer=
|
|
440
|
+
# print your own prompt + command
|
|
441
|
+
self.safePrint(f"> {line}", write_buffer=False)
|
|
444
442
|
|
|
445
443
|
# execute command
|
|
446
444
|
stop = await asyncio.to_thread(self.onecmd, line)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
serverwatcher/__init__.py,sha256=Q_afN0XU29n48d6Gf0-LT2lLo3RiTWlHRT6rC_fYbjw,486
|
|
2
2
|
serverwatcher/__main__.py,sha256=5geaZQKgLSP1pxnpQPgFy9zAwyyPyTInlbcFxb9OiEw,3016
|
|
3
|
-
serverwatcher/livecli.py,sha256=
|
|
3
|
+
serverwatcher/livecli.py,sha256=ap39G_4Vmy5iBznVFIJuqTsTlAWs3EZNzfq8IXcc1eQ,14132
|
|
4
4
|
serverwatcher/validator.py,sha256=aD6GHOz1S5VFC93Mj89WO9vZG1bTjhg7QZbdlvQf4wo,1778
|
|
5
5
|
serverwatcher/watcher.py,sha256=QfWuyDIPZ59yToIdX5PdPMRcJrq-kFUW8d9Q39mA0uE,13769
|
|
6
6
|
serverwatcher/watchercli.py,sha256=unREQ-KNIphH4nedz5L6TwReUJrSiXhIMjT1SZbYObU,4103
|
|
@@ -13,8 +13,8 @@ serverwatcher/defaultconfigs/messages.yaml,sha256=jSVEl-RYqPHhe5U5KLl8zfJtUBymvy
|
|
|
13
13
|
serverwatcher/defaultconfigs/watcher.yaml,sha256=GlAEKCuzFUSF6wWOqQLFL1CeuPltb1ltfYxFe_FUClw,723
|
|
14
14
|
serverwatcher/tests/test.py,sha256=CqGBdfktVIyXz6wMoa6TBbEPlPvp_lA_VSzBuxwxrfs,2551
|
|
15
15
|
serverwatcher/tests/test2.py,sha256=DcvYiidXTe3SSOpiSPQ585YBN4PXrDMs0a3ZW_TbBsg,9564
|
|
16
|
-
serverwatcher-6.
|
|
17
|
-
serverwatcher-6.
|
|
18
|
-
serverwatcher-6.
|
|
19
|
-
serverwatcher-6.
|
|
20
|
-
serverwatcher-6.
|
|
16
|
+
serverwatcher-6.dev49.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
17
|
+
serverwatcher-6.dev49.dist-info/METADATA,sha256=iUuqLqoDwL_LnPw3cJZVDJs5mRhqWVqBrURUd9TUOmE,2647
|
|
18
|
+
serverwatcher-6.dev49.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
19
|
+
serverwatcher-6.dev49.dist-info/top_level.txt,sha256=8DJAf8WmmglgtZHkp8aoTriRJ2YPcS4F3DfOIkytASo,14
|
|
20
|
+
serverwatcher-6.dev49.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|