Skip to content

Disable install completions #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/usethis/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
help=(
"Automate Python package and project setup tasks that are otherwise "
"performed manually."
)
),
add_completion=False,
)
app.command(help="Add an author to the project.")(
usethis._interface.author.author,
Expand Down
4 changes: 3 additions & 1 deletion src/usethis/_interface/badge.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
)
from usethis.errors import UsethisError

app = typer.Typer(help="Add badges to the top of the README.md file.")
app = typer.Typer(
help="Add badges to the top of the README.md file.", add_completion=False
)

remove_opt = typer.Option(
False, "--remove", help="Remove the badge instead of adding it."
Expand Down
4 changes: 3 additions & 1 deletion src/usethis/_interface/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
from usethis._core.browse import browse_pypi
from usethis.errors import UsethisError

app = typer.Typer(help="Visit important project-related web pages.")
app = typer.Typer(
help="Visit important project-related web pages.", add_completion=False
)


@app.command(help="Visit the PyPI project page for a package.")
Expand Down
4 changes: 3 additions & 1 deletion src/usethis/_interface/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
from usethis._core.ci import use_ci_bitbucket
from usethis.errors import UsethisError

app = typer.Typer(help="Add config for Continuous Integration (CI) pipelines.")
app = typer.Typer(
help="Add config for Continuous Integration (CI) pipelines.", add_completion=False
)


@app.command(help="Use Bitbucket pipelines for CI.")
Expand Down
4 changes: 3 additions & 1 deletion src/usethis/_interface/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
from usethis._core.show import show_name, show_sonarqube_config
from usethis.errors import UsethisError

app = typer.Typer(help="Show information about the current project.")
app = typer.Typer(
help="Show information about the current project.", add_completion=False
)


@app.command(help="Show the name of the project")
Expand Down
4 changes: 3 additions & 1 deletion src/usethis/_interface/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
)
from usethis.errors import UsethisError

app = typer.Typer(help="Add and configure development tools, e.g. linters.")
app = typer.Typer(
help="Add and configure development tools, e.g. linters.", add_completion=False
)

remove_opt = typer.Option(
False, "--remove", help="Remove the tool instead of adding it."
Expand Down