Hoist shlex to module-level import in cli

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 08:18:06 -04:00
parent e35828d819
commit 8ebb07e578
+1 -2
View File
@@ -1,5 +1,6 @@
import logging import logging
import os import os
import shlex
import subprocess import subprocess
import sys import sys
import traceback import traceback
@@ -185,8 +186,6 @@ def _palette_popup_command(window: str) -> str:
concrete here (run-shell already expanded #{window_name} before `hqt palette` concrete here (run-shell already expanded #{window_name} before `hqt palette`
ran). The selected entry runs `hqt tool <choice> <window>`. ran). The selected entry runs `hqt tool <choice> <window>`.
""" """
import shlex
entries = "\\n".join(PALETTE_ENTRIES) + "\\n" entries = "\\n".join(PALETTE_ENTRIES) + "\\n"
return ( return (
f"printf '{entries}' | " f"printf '{entries}' | "