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()