This commit is contained in:
Daylin Morgan 2023-05-25 17:44:08 -05:00
parent f1b2b14316
commit 3b9c2e64ca
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

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