Skip to content

Commit 331ced0

Browse files
committed
fix auto completions
1 parent 71602c8 commit 331ced0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cycode/cli/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import typer
55
from typer import rich_utils
6+
from typer._completion_classes import completion_init
67
from typer.completion import install_callback, show_callback
78

89
from cycode import __version__
@@ -23,6 +24,7 @@
2324
# By default, it uses blue color which is too dark for some terminals
2425
rich_utils.RICH_HELP = "Try [cyan]'{command_path} {help_option}'[/] for help."
2526

27+
completion_init() # DO NOT TOUCH; this is required for the completion to work properly
2628

2729
_cycode_cli_docs = 'https://github.com/cycodehq/cycode-cli/blob/main/README.md'
2830
_cycode_cli_epilog = f'[bold]Documentation:[/] [link={_cycode_cli_docs}]{_cycode_cli_docs}[/link]'

0 commit comments

Comments
 (0)