Skip to content

Commit

Permalink
cli: cli breakiing change of purge, v0.1.7
Browse files Browse the repository at this point in the history
change `prune` command in previous version into `purge` command
  • Loading branch information
alan890104 committed Apr 7, 2023
1 parent a5f3eed commit c5497d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <alan890104@gmail.com>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion solcix/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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} 👀")
Expand Down

0 comments on commit c5497d3

Please sign in to comment.