Skip to content

Honor --non-interactive in proxy commands#273

Open
gtsiolis wants to merge 1 commit into
mainfrom
des-240-honor-non-interactive-in-proxy-commands
Open

Honor --non-interactive in proxy commands#273
gtsiolis wants to merge 1 commit into
mainfrom
des-240-honor-non-interactive-in-proxy-commands

Conversation

@gtsiolis
Copy link
Copy Markdown
Member

Motivation

Non-interactive consumers (CI, scripts, agents) need clean, deterministic output. lstk aws ignored --non-interactive — and because the command uses DisableFlagParsing, the flag was also forwarded to the aws binary, which rejects it as unknown. Image-pull progress likewise produced no plain-mode output (silence during the pull, then a sudden result).

Changes

  • Strip and honor --non-interactive in proxy commands so the spinner is suppressed and the flag isn't passed through to aws.
  • Emit plain pull progress as one line per layer status transition (mirroring docker pull on a non-TTY), dropping byte-progress ticks so streams stay deterministic.

Tests

  • Integration TestAWSCommandSuppressesSpinnerInNonInteractiveMode (PTY; fails before, passes after) — existing slow/fast spinner tests still pass.
  • Unit TestStripNonInteractiveFlag + updated FormatEventLine/PlainSink parity tests.

DES-240

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gtsiolis gtsiolis force-pushed the des-240-honor-non-interactive-in-proxy-commands branch from 5181fc9 to 5a27a5c Compare May 29, 2026 17:14
@gtsiolis gtsiolis changed the title Honor --non-interactive in proxy commands and emit plain pull progress Honor --non-interactive in proxy commands May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant