From f6f2c50892a7baf1202398d7b1ce4f0eb679c763 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 7 Jan 2026 14:54:03 +0000 Subject: [PATCH 1/2] Initial plan From 7fda899cc736e12ae0022367d912d9ffce0a11fe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 7 Jan 2026 14:58:26 +0000 Subject: [PATCH 2/2] fix(cli): address PR review comments - cross-platform time, formatting, unused var Co-authored-by: wax911 <7859175+wax911@users.noreply.github.com> --- tools/stackctl_cli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/stackctl_cli.py b/tools/stackctl_cli.py index b4013b9..d4717ee 100644 --- a/tools/stackctl_cli.py +++ b/tools/stackctl_cli.py @@ -30,6 +30,7 @@ import shutil import subprocess import sys +import time from dataclasses import dataclass from pathlib import Path from typing import Dict, List, Optional, Tuple @@ -255,7 +256,7 @@ def deploy( @APP.command() -def logs(services: List[str] = typer.Argument(None, help="Services to follow (default preset)") ): +def logs(services: List[str] = typer.Argument(None, help="Services to follow (default preset)")): """Follow logs for services (docker service logs -f).""" svcs = services or DEFAULT_LOG_SERVICES for svc in svcs: @@ -363,7 +364,7 @@ def env_recreate( if resp.lower() not in ("y", "yes"): skipped.append(str(envp)) continue - backup = envp.with_suffix(envp.suffix + f".bak.{int(os.times().elapsed)}") + backup = envp.with_suffix(envp.suffix + f".bak.{int(time.time())}") shutil.copy2(envp, backup) shutil.copy2(ex, envp) overwritten.append(str(envp)) @@ -400,7 +401,7 @@ def secrets_decrypt( output_path.parent.mkdir(parents=True, exist_ok=True) # Write directly to file to avoid secrets in stdout with output_path.open("wb") as fh: - proc = subprocess.run(["sops", "-d", str(input_path)], check=True, stdout=fh) + subprocess.run(["sops", "-d", str(input_path)], check=True, stdout=fh) console.print(f"[green]Decrypted[/green] -> {output_path}")