Skip to content
Myr

:sparkles: Improve --install-completion messages

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastián Ramírez · committed by Sebastián Ramírez · parent 8596200 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:typer/completion.py+2 added-1 removed
12 unmodified lines
13def install_callback(ctx: click.Context, param: click.Parameter, value: Any) -> Any:14 if not value or ctx.resilient_parsing:15 return value16 shell, path = click_completion.core.install()17 click.echo(f"{shell} completion installed in {path}")17 click.secho(f"{shell} completion installed in {path}.", fg="green")18 click.echo("Completion will take effect once you restart the terminal.")19 sys.exit(0)202122def show_callback(ctx: click.Context, param: click.Parameter, value: Any) -> Any:
26 unmodified lines