serverwatcher 6.dev34__py3-none-any.whl → 6.dev35__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 +15 -7
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev35.dist-info}/METADATA +1 -1
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev35.dist-info}/RECORD +6 -6
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev35.dist-info}/WHEEL +0 -0
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev35.dist-info}/licenses/LICENSE +0 -0
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev35.dist-info}/top_level.txt +0 -0
serverwatcher/livecli.py
CHANGED
|
@@ -161,7 +161,7 @@ class CommandSpec:
|
|
|
161
161
|
continue
|
|
162
162
|
if s == 'pass':
|
|
163
163
|
continue
|
|
164
|
-
if s.startswith("'''") or s.startswith('"""'):
|
|
164
|
+
if s.startswith("'''") or s.startswith('\"\"\"'):
|
|
165
165
|
continue
|
|
166
166
|
stripped.append(s)
|
|
167
167
|
return stripped == []
|
|
@@ -230,18 +230,26 @@ def help_command(cmd):
|
|
|
230
230
|
lines = []
|
|
231
231
|
d = cmd.desc or 'No description'
|
|
232
232
|
lines.append(f'{cmd.name}: {d}')
|
|
233
|
+
|
|
234
|
+
u = f'Usage: {cmd.name}'
|
|
235
|
+
if cmd.flags:
|
|
236
|
+
u += ' [--flags]'
|
|
237
|
+
lines.append(u)
|
|
238
|
+
|
|
239
|
+
if cmd.flags:
|
|
240
|
+
lines.append('')
|
|
241
|
+
lines.append('\0 Flags:')
|
|
242
|
+
for n, fs in cmd.flags.items():
|
|
243
|
+
d = fs.desc or 'No description'
|
|
244
|
+
lines.append(f'\0 --{n}: {d}')
|
|
245
|
+
|
|
233
246
|
if cmd.children:
|
|
234
|
-
if cmd.is_namespace and len(cmd.children) == 1:
|
|
235
|
-
lines.append(f'Usage: {cmd.name} <child>')
|
|
236
|
-
else:
|
|
237
|
-
lines.append(f'Usage: {cmd.name} [child]')
|
|
238
247
|
lines.append('')
|
|
239
248
|
lines.append('\0 Children:')
|
|
240
249
|
for n, c in cmd.children.items():
|
|
241
250
|
cd = c.desc or 'No description'
|
|
242
251
|
lines.append(f'\0 {n}: {cd}')
|
|
243
|
-
|
|
244
|
-
lines.append(f'Usage: {cmd.name}')
|
|
252
|
+
|
|
245
253
|
return '\n'.join(lines)
|
|
246
254
|
|
|
247
255
|
def help_child(child):
|
|
@@ -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=wclWHoes1FkrV1nisf5oYutruKhnvwLlW4_kFOgHajo,12239
|
|
4
4
|
serverwatcher/validator.py,sha256=aD6GHOz1S5VFC93Mj89WO9vZG1bTjhg7QZbdlvQf4wo,1778
|
|
5
5
|
serverwatcher/watcher.py,sha256=QfWuyDIPZ59yToIdX5PdPMRcJrq-kFUW8d9Q39mA0uE,13769
|
|
6
6
|
serverwatcher/watchercli.py,sha256=UHPBRhpeVHIQOKBowXQR5KZj4C1YYl8FT3ygXuAlib0,3968
|
|
@@ -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.dev35.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
17
|
+
serverwatcher-6.dev35.dist-info/METADATA,sha256=hYEF5lC7PexG2sPydQ513eOYvAdsjFulNmG5JPGvTOg,2647
|
|
18
|
+
serverwatcher-6.dev35.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
19
|
+
serverwatcher-6.dev35.dist-info/top_level.txt,sha256=8DJAf8WmmglgtZHkp8aoTriRJ2YPcS4F3DfOIkytASo,14
|
|
20
|
+
serverwatcher-6.dev35.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|