serverwatcher 6.dev34__py3-none-any.whl → 6.dev36__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 +22 -6
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev36.dist-info}/METADATA +1 -1
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev36.dist-info}/RECORD +6 -6
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev36.dist-info}/WHEEL +0 -0
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev36.dist-info}/licenses/LICENSE +0 -0
- {serverwatcher-6.dev34.dist-info → serverwatcher-6.dev36.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,34 @@ def help_command(cmd):
|
|
|
230
230
|
lines = []
|
|
231
231
|
d = cmd.desc or 'No description'
|
|
232
232
|
lines.append(f'{cmd.name}: {d}')
|
|
233
|
+
|
|
233
234
|
if cmd.children:
|
|
234
235
|
if cmd.is_namespace and len(cmd.children) == 1:
|
|
235
|
-
|
|
236
|
+
u = f'Usage: {cmd.name} <child>'
|
|
236
237
|
else:
|
|
237
|
-
|
|
238
|
+
u = f'Usage: {cmd.name} [child]'
|
|
239
|
+
else:
|
|
240
|
+
u = f'Usage: {cmd.name}'
|
|
241
|
+
|
|
242
|
+
if cmd.flags:
|
|
243
|
+
u += ' [--flags]'
|
|
244
|
+
|
|
245
|
+
lines.append(u)
|
|
246
|
+
|
|
247
|
+
if cmd.flags:
|
|
248
|
+
lines.append('')
|
|
249
|
+
lines.append('\0 Flags:')
|
|
250
|
+
for n, fs in cmd.flags.items():
|
|
251
|
+
d = fs.desc or 'No description'
|
|
252
|
+
lines.append(f'\0 --{fs.name}: {d}')
|
|
253
|
+
|
|
254
|
+
if cmd.children:
|
|
238
255
|
lines.append('')
|
|
239
256
|
lines.append('\0 Children:')
|
|
240
257
|
for n, c in cmd.children.items():
|
|
241
258
|
cd = c.desc or 'No description'
|
|
242
259
|
lines.append(f'\0 {n}: {cd}')
|
|
243
|
-
|
|
244
|
-
lines.append(f'Usage: {cmd.name}')
|
|
260
|
+
|
|
245
261
|
return '\n'.join(lines)
|
|
246
262
|
|
|
247
263
|
def help_child(child):
|
|
@@ -281,7 +297,7 @@ def help_child(child):
|
|
|
281
297
|
lines.append('\0 Flags:')
|
|
282
298
|
for n, fs in child.flags.items():
|
|
283
299
|
d = fs.desc or 'No description'
|
|
284
|
-
lines.append(f'\0
|
|
300
|
+
lines.append(f'\0 --{fs.name}: {d}')
|
|
285
301
|
return '\n'.join(lines)
|
|
286
302
|
|
|
287
303
|
def help_arg(child, meta):
|
|
@@ -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=OIeHBOq5ZinkqK68nqa3Bc8O8TFtluQy00cYiLzxKqc,12452
|
|
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.dev36.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
17
|
+
serverwatcher-6.dev36.dist-info/METADATA,sha256=5D79qLhLf69nEwGowxvkb14CNP6sx2pOpZlq7XxFJm8,2647
|
|
18
|
+
serverwatcher-6.dev36.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
19
|
+
serverwatcher-6.dev36.dist-info/top_level.txt,sha256=8DJAf8WmmglgtZHkp8aoTriRJ2YPcS4F3DfOIkytASo,14
|
|
20
|
+
serverwatcher-6.dev36.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|