Compare commits
2 Commits
bcabfa9d70
...
4aa6a65e6c
Author | SHA1 | Date | |
---|---|---|---|
4aa6a65e6c | |||
81e16e99f6 |
@ -93,14 +93,14 @@ def finish(success=True, data=None, formatter=None):
|
||||
else:
|
||||
echo(CLI_CONFIG, data)
|
||||
|
||||
# Allow passing
|
||||
if isinstance(success, int):
|
||||
exit(success)
|
||||
|
||||
if success:
|
||||
exit(0)
|
||||
# Allow passing raw values if not a bool
|
||||
if isinstance(success, bool):
|
||||
if success:
|
||||
exit(0)
|
||||
else:
|
||||
exit(1)
|
||||
else:
|
||||
exit(1)
|
||||
exit(success)
|
||||
|
||||
|
||||
def version(ctx, param, value):
|
||||
|
@ -3,7 +3,7 @@ from setuptools import setup
|
||||
setup(
|
||||
name="pvc",
|
||||
version="0.9.63",
|
||||
packages=["pvc", "pvc.lib"],
|
||||
packages=["pvc.cli", "pvc.lib"],
|
||||
install_requires=[
|
||||
"Click",
|
||||
"PyYAML",
|
||||
@ -14,7 +14,7 @@ setup(
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"pvc = pvc.pvc:cli",
|
||||
"pvc = pvc.cli.cli:cli",
|
||||
],
|
||||
},
|
||||
)
|
||||
|
Reference in New Issue
Block a user