From c5497d33573e67eef93296a182af66ec1d16371c Mon Sep 17 00:00:00 2001 From: alan890104 Date: Fri, 7 Apr 2023 19:26:19 +0800 Subject: [PATCH] cli: cli breakiing change of purge, v0.1.7 change `prune` command in previous version into `purge` command --- README.md | 9 ++++----- pyproject.toml | 2 +- solcix/__main__.py | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c88c933..8e4af52 100644 --- a/README.md +++ b/README.md @@ -113,13 +113,12 @@ solcix installed If global / local version is set, it will be displayed as below: ```bash -0.8.19 -0.5.2 -0.5.1 0.5.0 -0.8.0 <- current 0.8.0 0.8.16 +0.8.17 +0.8.18 <- current +0.8.19 ``` ### Switching between Solidity compilers @@ -176,7 +175,7 @@ solcix uninstall 0.8.4 0.7.6 To uninstall all versions of Solidity compiler that have been installed using solcix, you can use the following command: ```bash -solcix prune +solcix purge ``` This will remove all versions of the Solidity compilers that have been installed by solcix, all cached files, and the solcix configuration file (local config takes precedence over global config). diff --git a/pyproject.toml b/pyproject.toml index 62e9f8d..98e5e60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "solcix" -version = "0.1.6" +version = "0.1.7" description = "A Python wrapper for the Solidity compiler. Switch between versions, compile, and manage artifacts." authors = ["alan890104 "] readme = "README.md" diff --git a/solcix/__main__.py b/solcix/__main__.py index c40972c..39b7c89 100644 --- a/solcix/__main__.py +++ b/solcix/__main__.py @@ -99,7 +99,7 @@ def uninstall(version: Union[List[str], str]): print(Fore.RED + f"error : {', '.join(error)}" + Style.RESET_ALL) @cli.command(help="Uninstall all solc binaries.") -def prune(): +def purge(): opt = click.confirm(default=False, text="Are you sure to uninstall all solc binaries, caches, and config files?") if opt is False: print(f"👀{Fore.YELLOW} You have canceled the operation. Indeed, a wise choice!{Style.RESET_ALL} 👀")