Skip to content
Merged
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
8 changes: 5 additions & 3 deletions cycode/cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import typer
from typer import rich_utils
from typer._completion_classes import completion_init
from typer._completion_shared import Shells
from typer.completion import install_callback, show_callback

from cycode import __version__
Expand Down Expand Up @@ -113,16 +114,17 @@ def app_callback(
),
] = False,
__: Annotated[
Optional[bool],
Shells, # the choice is required for Homebrew to be able to install the completion
typer.Option(
'--show-completion',
callback=show_callback,
is_eager=True,
expose_value=False,
help='Show completion for the current shell, to copy it or customize the installation.',
show_default=False,
help='Show completion for the specified shell, to copy it or customize the installation.',
rich_help_panel=_COMPLETION_RICH_HELP_PANEL,
),
] = False,
] = None,
) -> None:
"""[bold cyan]Cycode CLI - Command Line Interface for Cycode.[/]"""
init_sentry()
Expand Down