Repository navigation
fix(cli): self uninstall --unattended takes the default and removes nothing, no answer is No, and --interactive goes - #1061
Merged
David-Noble-at-work merged 5 commits intoOct 19, 2026
Conversation
…answer is No, and --interactive goes
…e, --force -- and --interactive gone, failing first
…othing, and no answer is No
…-interactive goes; #949's stale plans ticked
David-Noble-at-work
deleted the
fix/1005-self-uninstall-unattended-still
branch
October 19, 2026 22:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lane 28 of #949.
--unattendedtakes the default (self uninstall --unattended still prompts, and fails with no input #1005).self uninstall --unattendedasked anyway, and with no input failed withfailed to read input: EOF. It now asks nothing, removes nothing, says so, and exits 0. Ruled 2026-10-01: "--unattended takes the default and aborts."--unattendedis read the one way options are read,viper.GetBool("<program>.unattended").echo y | writ self uninstallkeeps working; no answer, an empty line or end of input, now removes nothing and exits 0 instead of failing. Ruled 2026-10-19: "Follow Docker's behavior." Looked up first in docker/cli'sinternal/prompt/prompt.go,cli/command/system/prune.goandcmd/docker/docker.go.--forcestill removes without asking, alongside--unattendedtoo.docs/architecture/10-command-line-interface.md§ 10 makes a confirmation the exception to "prompt only when stdin is a TTY", and § 16 records it as a divergence from clig.dev; the status document records the revision.--interactivegoes. Nothing read it. Ruled 2026-10-19: "I see no need for--interactive," then "Delete it in lane 28's pull request." The shared root no longer declares it, so every program loses it; giving it is a usage error, exit 64.docs/plans/fix/1005-self-uninstall-unattended-still.md.Resolves #1005
Test plan
--unattendedwithyon stdin removes nothing; end of input removes nothing and exits 0;yandnon a pipe do as answered;--force --unattendedremoves;--interactiveis an unknown flag, exit 64. The--unattended, end-of-input and--interactivetests failed against4d18e48c; the others held the behavior this change keepsmake test,make vet-all,make lint-allon linux, darwin and windows,make build,star lint go;gofmt -lemptymake test-raceandmake test-scenarioself uninstall --unattendedandself uninstall < /dev/nulleach leave the install as it was and exit 0Written with AI assistance.
Signed-off-by: David Noble [email protected]
Assisted-by: Claude Code
Time
Computed by the algorithm of noblefactor-ops#188 at merge.