File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
import typer
5
5
from typer import rich_utils
6
6
from typer ._completion_classes import completion_init
7
+ from typer ._completion_shared import Shells
7
8
from typer .completion import install_callback , show_callback
8
9
9
10
from cycode import __version__
@@ -113,16 +114,17 @@ def app_callback(
113
114
),
114
115
] = False ,
115
116
__ : Annotated [
116
- Optional [ bool ],
117
+ Shells , # the choice is required for Homebrew to be able to install the completion
117
118
typer .Option (
118
119
'--show-completion' ,
119
120
callback = show_callback ,
120
121
is_eager = True ,
121
122
expose_value = False ,
122
- help = 'Show completion for the current shell, to copy it or customize the installation.' ,
123
+ show_default = False ,
124
+ help = 'Show completion for the specified shell, to copy it or customize the installation.' ,
123
125
rich_help_panel = _COMPLETION_RICH_HELP_PANEL ,
124
126
),
125
- ] = False ,
127
+ ] = None ,
126
128
) -> None :
127
129
"""[bold cyan]Cycode CLI - Command Line Interface for Cycode.[/]"""
128
130
init_sentry ()
You can’t perform that action at this time.
0 commit comments