cleepcli 1.43.1__tar.gz → 1.43.2__tar.gz
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.
- {cleepcli-1.43.1/cleepcli.egg-info → cleepcli-1.43.2}/PKG-INFO +1 -1
- {cleepcli-1.43.1 → cleepcli-1.43.2}/bin/ccli +7 -2
- {cleepcli-1.43.1 → cleepcli-1.43.2}/bin/cleep-cli +7 -2
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/check.py +8 -3
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/version.py +1 -1
- {cleepcli-1.43.1 → cleepcli-1.43.2/cleepcli.egg-info}/PKG-INFO +1 -1
- {cleepcli-1.43.1 → cleepcli-1.43.2}/LICENSE +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/MANIFEST.in +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/README.md +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/__init__.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/ci.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/cleepapi.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/config.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/console.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/docs.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/file.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/git.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/module.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/package.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/test.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/tools.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli/watch.py +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli.egg-info/SOURCES.txt +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli.egg-info/dependency_links.txt +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli.egg-info/requires.txt +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/cleepcli.egg-info/top_level.txt +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/setup.cfg +0 -0
- {cleepcli-1.43.1 → cleepcli-1.43.2}/setup.py +0 -0
|
@@ -733,10 +733,15 @@ def modcheckdoc(module, as_json):
|
|
|
733
733
|
try:
|
|
734
734
|
res = c.check_module_documentation(module)
|
|
735
735
|
|
|
736
|
+
content = res["details"]
|
|
736
737
|
if as_json:
|
|
737
|
-
|
|
738
|
+
if res["invalid"]:
|
|
739
|
+
content = {"error": res["error"]}
|
|
740
|
+
logging.info('%s' % json.dumps(content))
|
|
738
741
|
else:
|
|
739
|
-
|
|
742
|
+
if res["invalid"]:
|
|
743
|
+
content = f"Error: {res['error']}"
|
|
744
|
+
logging.info('%s' % content)
|
|
740
745
|
|
|
741
746
|
if res["invalid"]:
|
|
742
747
|
sys.exit(1)
|
|
@@ -733,10 +733,15 @@ def modcheckdoc(module, as_json):
|
|
|
733
733
|
try:
|
|
734
734
|
res = c.check_module_documentation(module)
|
|
735
735
|
|
|
736
|
+
content = res["details"]
|
|
736
737
|
if as_json:
|
|
737
|
-
|
|
738
|
+
if res["invalid"]:
|
|
739
|
+
content = {"error": res["error"]}
|
|
740
|
+
logging.info('%s' % json.dumps(content))
|
|
738
741
|
else:
|
|
739
|
-
|
|
742
|
+
if res["invalid"]:
|
|
743
|
+
content = f"Error: {res['error']}"
|
|
744
|
+
logging.info('%s' % content)
|
|
740
745
|
|
|
741
746
|
if res["invalid"]:
|
|
742
747
|
sys.exit(1)
|
|
@@ -1429,7 +1429,8 @@ overgeneral-exceptions=Exception
|
|
|
1429
1429
|
"""
|
|
1430
1430
|
output = {
|
|
1431
1431
|
"invalid": False,
|
|
1432
|
-
"
|
|
1432
|
+
"error": "",
|
|
1433
|
+
"details": {},
|
|
1433
1434
|
}
|
|
1434
1435
|
|
|
1435
1436
|
self.logger.debug("Check module docs by command line")
|
|
@@ -1441,7 +1442,9 @@ overgeneral-exceptions=Exception
|
|
|
1441
1442
|
|
|
1442
1443
|
if resp["returncode"] != 0:
|
|
1443
1444
|
output["invalid"] = True
|
|
1444
|
-
|
|
1445
|
+
output["error"] = json.loads(resp["stdout"])
|
|
1446
|
+
else:
|
|
1447
|
+
output["details"] = json.loads(resp["stdout"])
|
|
1445
1448
|
|
|
1446
1449
|
return output
|
|
1447
1450
|
|
|
@@ -1459,6 +1462,8 @@ overgeneral-exceptions=Exception
|
|
|
1459
1462
|
self.logger.debug("Call resp: %s", resp)
|
|
1460
1463
|
if resp["error"]:
|
|
1461
1464
|
output["invalid"] = True
|
|
1462
|
-
|
|
1465
|
+
output["error"] = resp["message"]
|
|
1466
|
+
else:
|
|
1467
|
+
output["details"] = resp["data"] if resp["data"] is not None else {}
|
|
1463
1468
|
|
|
1464
1469
|
return output
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|