mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
fix(cli): remove doctor --fix and services --mode, which did nothing (#53)
doctor --fix only hid the hint text and services --mode filtered nothing, because the server does not report service modes. Both flags are removed rather than kept as promises; doctor's summary now points at the Fix line under each failed check. services --mode can return once the server exposes service metadata (BL-065). Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
1 parent
771b353733
commit
1a7e84cd23
4 files changed
+40
-8
No files matched your search
@@ -50,9 +50,6 @@ public class DoctorCommand implements Callable<Integer> {
|
||||
@Option(names = {"--check"}, description = "Run only a specific check by name", paramLabel = "<name>")
|
||||
String checkName;
|
||||
|
||||
@Option(names = {"--fix"}, description = "Attempt to auto-fix fixable issues")
|
||||
boolean fix;
|
||||
|
||||
/** The base environment checks every product runs, in order: Docker first, then server. */
|
||||
public static List<Check> dockerChecks(ProductProfile profile) {
|
||||
return dockerChecks(profile, new CachingDockerClient());
|
||||
@@ -182,7 +179,7 @@ public class DoctorCommand implements Callable<Integer> {
|
||||
printer.println(Ansi.green("No failures") + ", " + warns + " warning(s) to review.");
|
||||
} else {
|
||||
printer.println(fails + " issue(s) found (" + fails + " fail, " + warns + " warn)."
|
||||
+ (fix ? "" : " Run with --fix to auto-resolve fixable issues."));
|
||||
+ " Follow the Fix line under each one.");
|
||||
}
|
||||
|
||||
return fails > 0 ? 1 : 0;
|
||||
|
||||
@@ -35,9 +35,6 @@ public class ServicesCommand implements Callable<Integer> {
|
||||
this.global = new GlobalOptions(profile);
|
||||
}
|
||||
|
||||
@Option(names = {"--mode"}, description = "Filter mode: docker, in-process, all (default: all)", defaultValue = "all", paramLabel = "docker|in-process|all")
|
||||
String mode;
|
||||
|
||||
@Override
|
||||
public Integer call() {
|
||||
Printer printer = global.printer();
|
||||
|
||||
Reference in new issue
Block a user