Skip to content

Revert "fix(cli): JSON errors to stdout; no interactive confirm on piped stdin (#413)"#415

Merged
PeterGuy326 merged 1 commit into
mainfrom
revert/cli-json-stderr-413
Jun 5, 2026
Merged

Revert "fix(cli): JSON errors to stdout; no interactive confirm on piped stdin (#413)"#415
PeterGuy326 merged 1 commit into
mainfrom
revert/cli-json-stderr-413

Conversation

@PeterGuy326
Copy link
Copy Markdown
Collaborator

Reverts #413 (commit f826375).

Restores the prior behavior:

  • printExecutionError: JSON-mode structured errors go back to stderr (not stdout).
  • requireYesForDelete: removes the non-TTY short-circuit that returned a structured validation error requiring --yes on piped stdin; the interactive confirm path is restored.
  • Reverts the 3 root_execute test assertions to expect JSON errors on stderr.

Build and the affected package tests (internal/app, internal/compat) pass locally.

@PeterGuy326 PeterGuy326 merged commit 5fbf12f into main Jun 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants