From 103944e318eb9a4b5662fb5f9b91cc0c1248ac83 Mon Sep 17 00:00:00 2001 From: Brian Krabach Date: Tue, 31 Mar 2026 15:31:47 -0700 Subject: [PATCH] fix: remove redundant sys import and update upgrade() service install references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove inner 'import sys' inside install-service branch (sys already imported at module level on line 8; was triggering PLC0415 smell) - Update two fallback messages in upgrade() from 'muxplex install-service' to 'muxplex service install' — consistent with deprecation warning and doctor() messages updated in Task 5 --- muxplex/cli.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/muxplex/cli.py b/muxplex/cli.py index b088ff4..9bfc4d3 100644 --- a/muxplex/cli.py +++ b/muxplex/cli.py @@ -630,7 +630,7 @@ def upgrade(*, force: bool = False) -> None: subprocess.run(["launchctl", "load", str(plist)], capture_output=True) print(" Service started (legacy)") else: - print(" Service file not found — run: muxplex install-service") + print(" Service file not found — run: muxplex service install") else: result = subprocess.run( ["systemctl", "--user", "is-enabled", "muxplex"], @@ -647,7 +647,7 @@ def upgrade(*, force: bool = False) -> None: ) print(" Service started") else: - print(" Service not enabled — run: muxplex install-service") + print(" Service not enabled — run: muxplex service install") # 5. Doctor check print("\n Verifying...") @@ -729,8 +729,6 @@ def main() -> None: args = parser.parse_args() if args.command == "install-service": - import sys - print( "Warning: 'install-service' is deprecated and will be removed in a future version." " Use 'muxplex service install' instead.",