feat(reset): never guess which server to reset

A typed --endpoint is used as given instead of being replaced by a local container's port, and a container the user selected has to be found running: a missing or stopped one resets nothing rather than falling back to the default instance. The confirmation goes through a seam, with tests for every answer.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
Hector Ventura committed 2026-10-10 21:29:35 -05:00
1 parent 024d5d6c23
commit 9ded9185bd
4 files changed
+294 -6

No files matched your search

@@ -105,7 +105,8 @@ public class GlobalOptions {
return "";
}
private boolean typed(String option) {
/** Whether {@code option} was given on the command line, as opposed to coming from a profile, the environment or the default. */
public boolean typed(String option) {
try {
return mixee != null && mixee.commandLine() != null
&& mixee.commandLine().getParseResult() != null