diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 7a5bbd95a..de19c276e 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -33,5 +33,5 @@ COPY --from=build /venv/ /venv/ ENV PATH=/venv/bin:$PATH # change this entrypoint if it is not the same as the repo -ENTRYPOINT ["bluesky"] +ENTRYPOINT ["blueapi"] CMD ["worker"] diff --git a/docs/developer/tutorials/dev-run.rst b/docs/developer/tutorials/dev-run.rst index 4930a40e9..fd508b260 100644 --- a/docs/developer/tutorials/dev-run.rst +++ b/docs/developer/tutorials/dev-run.rst @@ -44,7 +44,7 @@ Start the worker from the command line or vscode: .. code:: shell - bluesky worker + blueapi worker .. tab-item:: VSCode diff --git a/pyproject.toml b/pyproject.toml index 864594955..ae12cd371 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,8 @@ dev = [ ] [project.scripts] -bluesky = "blueapi.cli:main" +blueapi = "blueapi.cli:main" +bluesky = "blueapi.cli._deprecated:main" [project.urls] GitHub = "https://github.com/DiamondLightSource/blueapi" diff --git a/src/blueapi/cli/_deprecated.py b/src/blueapi/cli/_deprecated.py new file mode 100644 index 000000000..c7eba06a6 --- /dev/null +++ b/src/blueapi/cli/_deprecated.py @@ -0,0 +1,11 @@ +from .cli import main + +__all__ = ["main"] + +DEPRECATION_MESSAGE = ( + "WARNING! This command is deprecated, please use >>blueapi instead!" +) + +print("*" * len(DEPRECATION_MESSAGE)) +print(DEPRECATION_MESSAGE) +print("*" * len(DEPRECATION_MESSAGE))