mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 18:50:43 -06:00
fix: use echo/error not print
This commit is contained in:
parent
ccf8e0ec61
commit
8fdb1817a7
1 changed files with 2 additions and 2 deletions
|
@ -807,7 +807,7 @@ class Viv:
|
||||||
"""create import statement from package spec"""
|
"""create import statement from package spec"""
|
||||||
|
|
||||||
if not args.reqs:
|
if not args.reqs:
|
||||||
print("must specify a requirement")
|
error("must specify a requirement")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
generate_import(
|
generate_import(
|
||||||
|
@ -848,7 +848,7 @@ class Viv:
|
||||||
|
|
||||||
pip_path, python_path = (vivenv.path / "bin" / cmd for cmd in ("pip", "python"))
|
pip_path, python_path = (vivenv.path / "bin" / cmd for cmd in ("pip", "python"))
|
||||||
# todo check for vivenv
|
# todo check for vivenv
|
||||||
print(f"executing command within {args.vivenv}")
|
echo(f"executing command within {args.vivenv}")
|
||||||
|
|
||||||
cmd = (
|
cmd = (
|
||||||
f"{pip_path} {' '.join(args.cmd)}"
|
f"{pip_path} {' '.join(args.cmd)}"
|
||||||
|
|
Loading…
Reference in a new issue