serverwatcher 6.dev37__py3-none-any.whl → 6.dev39__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 +5 -4
- {serverwatcher-6.dev37.dist-info → serverwatcher-6.dev39.dist-info}/METADATA +1 -1
- {serverwatcher-6.dev37.dist-info → serverwatcher-6.dev39.dist-info}/RECORD +6 -6
- {serverwatcher-6.dev37.dist-info → serverwatcher-6.dev39.dist-info}/WHEEL +0 -0
- {serverwatcher-6.dev37.dist-info → serverwatcher-6.dev39.dist-info}/licenses/LICENSE +0 -0
- {serverwatcher-6.dev37.dist-info → serverwatcher-6.dev39.dist-info}/top_level.txt +0 -0
serverwatcher/livecli.py
CHANGED
|
@@ -153,10 +153,11 @@ class CommandSpec:
|
|
|
153
153
|
|
|
154
154
|
def _infer_namespace(self):
|
|
155
155
|
src = inspect.getsource(self.func)
|
|
156
|
-
|
|
156
|
+
lines = src.splitlines()
|
|
157
|
+
|
|
157
158
|
stripped = []
|
|
158
|
-
for
|
|
159
|
-
s =
|
|
159
|
+
for line in lines[1:]:
|
|
160
|
+
s = line.strip()
|
|
160
161
|
if not s:
|
|
161
162
|
continue
|
|
162
163
|
if s == 'pass':
|
|
@@ -232,7 +233,7 @@ def help_command(cmd):
|
|
|
232
233
|
lines.append(f'{cmd.name}: {d}')
|
|
233
234
|
|
|
234
235
|
if cmd.children:
|
|
235
|
-
if cmd.is_namespace and len(cmd.children)
|
|
236
|
+
if cmd.is_namespace and len(cmd.children) > 0:
|
|
236
237
|
u = f'Usage: {cmd.name} <child>'
|
|
237
238
|
else:
|
|
238
239
|
u = f'Usage: {cmd.name} [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=KVPA6SIO_BlDwbrgFoFoQh6Y1XGRYxedbhIcrmd68fA,12459
|
|
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.dev39.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
17
|
+
serverwatcher-6.dev39.dist-info/METADATA,sha256=1MMFWWxrir05GWFWRwr5JbLc_DJjmTtys6WOm6uDnIs,2647
|
|
18
|
+
serverwatcher-6.dev39.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
19
|
+
serverwatcher-6.dev39.dist-info/top_level.txt,sha256=8DJAf8WmmglgtZHkp8aoTriRJ2YPcS4F3DfOIkytASo,14
|
|
20
|
+
serverwatcher-6.dev39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|