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