From 3b9c2e64caf7a87ff9a89f14824a961b2a205ea7 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 25 May 2023 17:44:08 -0500 Subject: [PATCH] WIP --- src/viv/viv.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index 7f5c4cb..5cb12f8 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -448,7 +448,7 @@ class ViVenv: a.table((("key", "value"), *((k, v) for k, v in info.items()))) -def use(*packages: str, track_exe: bool = False, name: str = "") -> None: +def use(*packages: str, track_exe: bool = False, name: str = "") -> ViVenv: """create a vivenv and append to sys.path Args: @@ -467,6 +467,7 @@ def use(*packages: str, track_exe: bool = False, name: str = "") -> None: vivenv.dump_info(write=True) modify_sys_path(vivenv.path) + return vivenv def validate_spec(spec: Tuple[str, ...]) -> None: @@ -895,7 +896,7 @@ class Viv: vivenv.dump_info() - def self_manage(self, args: Namespace) -> None: + def manage(self, args: Namespace) -> None: """manage viv installation""" echo("not yet implemented. sorry") @@ -1017,7 +1018,7 @@ class Viv: parents=[p_vivenv_arg], ) - self._get_subcmd_parser(subparsers, name="self", attr="self_manage") + self._get_subcmd_parser(subparsers, name="manage") args = parser.parse_args()