Skip to content

Commit

Permalink
add "experimental feature" notice also in CLI help
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Feb 9, 2025
1 parent a5c68a8 commit 69c9762
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ poetry python install <PYTHON_VERSION>
### python list

The `python list` command shows Python versions available in the environment. This includes both installed and
discovered System Managed and Poetry Managed installations.
discovered System managed and Poetry managed installations.

```bash
poetry python list
Expand Down
5 changes: 4 additions & 1 deletion src/poetry/console/commands/python/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ class PythonInstallCommand(Command):
),
]

description = "Install the specified Python version from the Python Standalone Builds project."
description = (
"Install the specified Python version from the Python Standalone Builds project."
" (<warning>experimental feature</warning>)"
)

def handle(self) -> int:
request = self.argument("python")
Expand Down
5 changes: 4 additions & 1 deletion src/poetry/console/commands/python/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ class PythonListCommand(Command):
option("managed", "m", "List only Poetry managed Python versions.", flag=True),
]

description = "Shows Python versions available for this environment."
description = (
"Shows Python versions available for this environment."
" (<warning>experimental feature</warning>)"
)

def handle(self) -> int:
rows: list[PythonInfo] = []
Expand Down
5 changes: 4 additions & 1 deletion src/poetry/console/commands/python/remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ class PythonRemoveCommand(Command):
),
]

description = "Remove the specified Python version if managed by Poetry."
description = (
"Remove the specified Python version if managed by Poetry."
" (<warning>experimental feature</warning>)"
)

@staticmethod
def remove_python_installation(request: str, implementation: str, io: IO) -> int:
Expand Down

0 comments on commit 69c9762

Please sign in to comment.