From a13081b14f40abbb2f888ae9ae5602390302d9a0 Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Tue, 25 Aug 2026 19:57:40 -0600 Subject: [PATCH] feat(post-scripts): show a spinner while waiting for a script --- unshackle/core/utils/post_scripts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unshackle/core/utils/post_scripts.py b/unshackle/core/utils/post_scripts.py index 2af01834..c5f447b2 100644 --- a/unshackle/core/utils/post_scripts.py +++ b/unshackle/core/utils/post_scripts.py @@ -23,6 +23,7 @@ from pathlib import Path from typing import Any, Iterator, Optional, Sequence from unshackle.core.config import config +from unshackle.core.console import console from unshackle.core.utilities import log_event from unshackle.core.utils.redact import redact_path, redact_text @@ -231,7 +232,8 @@ def dispatch(event: str, mode: str, context: dict[str, str], overrides: Sequence log.warning("Post-script failed to start (%s): %s", e, redact_text(redact_path(argv[0]))) continue if wait: - rc = proc.wait() + with console.status(f"Waiting for post-script ({redact_path(argv[0])})...", spinner="dots"): + rc = proc.wait() log.debug("Post-script exited %s: %s", rc, safe_command) log_event( "post_script_exit",