Skip to content

Commit

Permalink
Display an error message if using the python-on-whales command (#640)
Browse files Browse the repository at this point in the history
Before:

```
$ python-on-whales download-cli
zsh: command not found: python-on-whales
```

After:

```
$ python-on-whales download-cli
The python-on-whales command line interface has been removed in python-on-whales v0.74.0. If you were using it to download the docker CLI, you should instead do it manually. Take a look at https://gabrieldemarmiesse.github.io/python-on-whales/docker_client/ which has instructions to download the Docker client.
```
  • Loading branch information
gabrieldemarmiesse authored Oct 14, 2024
1 parent 0a1ecad commit 40e1f27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ dev = ["ruff==0.5.6"]
"Documentation" = "https://gabrieldemarmiesse.github.io/python-on-whales/"
"Bug Tracker" = "https://github.com/gabrieldemarmiesse/python-on-whales/issues"

[project.scripts]
python-on-whales = "python_on_whales.command_line_entrypoint:main"

[tool.setuptools.packages.find]
exclude = ["tests*", "docs*"]

Expand Down
8 changes: 8 additions & 0 deletions python_on_whales/command_line_entrypoint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def main():
print(
"The python-on-whales command line interface has been removed "
"in python-on-whales v0.74.0. If you were using it to download the docker CLI, "
"you should instead do it manually. "
"Take a look at https://gabrieldemarmiesse.github.io/python-on-whales/docker_client/ "
"which has instructions to download the Docker client."
)

0 comments on commit 40e1f27

Please sign in to comment.