From 52be099914811693a35e7f315aaff9c9881a98cb Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Thu, 28 May 2026 22:43:25 +0200 Subject: [PATCH] removed exception in favor of sys.exit() to exit silently with print --- cli/src/zshell/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/zshell/__init__.py b/cli/src/zshell/__init__.py index 2302eed..9c8c6b8 100644 --- a/cli/src/zshell/__init__.py +++ b/cli/src/zshell/__init__.py @@ -32,11 +32,11 @@ def _completion_installed() -> bool: def _install_completion() -> None: if _completion_installed(): print("zshell-cli: Shell completion already installed.") - raise typer.Exit() + sys.exit(0) shell = _get_shell_name() if shell is None: print("zshell-cli: Unable to detect shell type.", file=sys.stderr) - raise typer.Exit(code=1) + sys.exit(1) try: _, path = install(prog_name="zshell-cli") print(f"zshell-cli: Shell completion installed ({shell}: {path})")