diff --git a/src/viv/viv.py b/src/viv/viv.py index 72f87cf..545ac37 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -53,7 +53,7 @@ from typing import ( from urllib.error import HTTPError from urllib.request import urlopen -__version__ = "23.8a1-5-g4c782db-dev" +__version__ = "23.8a1-7-g8f6adcc-dev" class Spinner: @@ -1151,12 +1151,15 @@ class Viv: else: err_quit(f"no matches found for {name_id}") - def remove(self, vivenvs: List[str]) -> None: + def cache(self) -> None: + """manage the viv vivenv cache""" + + def cache_remove(self, vivenvs: List[str]) -> None: """\ remove a vivenv To remove all viv venvs: - `viv rm $(viv l -q)` + `viv cache remove $(viv l -q)` """ for name in vivenvs: @@ -1241,7 +1244,7 @@ class Viv: run(full_cmd, verbose=True) - def info(self, vivenv_id: str, path: bool, use_json: bool) -> None: + def cache_info(self, vivenv_id: str, path: bool, use_json: bool) -> None: """get metadata about a vivenv""" vivenv = self._match_vivenv(vivenv_id) metadata_file = vivenv.path / "vivmeta.json" @@ -1578,7 +1581,7 @@ class Cli: metavar="", ), ], - ("info",): [ + ("cache_info",): [ Arg( "-p", "--path", @@ -1586,16 +1589,13 @@ class Cli: action="store_true", ), ], - ("remove",): [ - Arg("vivenvs", help="name/hash of vivenv", nargs="*", metavar="vivenv") - ], ("run",): [ Arg("-s", "--script", help="remote script to run", metavar="