Hoist shlex to module-level import in cli
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-2
@@ -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}' | "
|
||||||
|
|||||||
Reference in New Issue
Block a user