mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user