if (targetClass.hasMethodSignature("equals", Object.class)) if (prompt.promptBoolean("Class already has an equals method. Would you like it to be overwritten?")) if (prompt.promptBoolean("Class already has a hashcode method. Would you like it to be overwritten?"))
@Command(value = "wait", help = "Wait for ENTER.", enabled = NonGUIEnabledPredicate.class) public void wait(UIPrompt prompt) { prompt.prompt("Press <ENTER> to continue..."); } }
if (context.getPrompt().promptBoolean("Would you like to continue?", true) == false) if (!context.getPrompt().promptBoolean(promptMsg, false))
@Override public Result execute(UIExecutionContext context) throws Exception { context.getPrompt().prompt("Press <ENTER> to continue..."); return Results.success(); }
if (prompt.promptBoolean(installRequest.toString() + "\n Do you want to proceed?"))
if (prompt.promptBoolean("Is that ok ?", true))
if (existingDep != null) if (context.getPrompt().promptBoolean( String.format("Dependency is already managed [%s:%s:%s], reference the managed dependency?", existingDep.getCoordinate().getGroupId(), existingDep.getCoordinate().getArtifactId(),
@Override public Result execute(UIExecutionContext context) throws Exception { if (!context.getPrompt().promptBoolean( "Are you sure you want to continue? This command will delete current directories: addons, bin, lib, rules/migration-core")) { return Results.fail("Updating distribution was aborted."); } // Find the latest version. Coordinate latestDist = this.updater.getLatestReleaseOf("org.jboss.windup", "windup-distribution"); Version latestVersion = SingleVersion.valueOf(latestDist.getVersion()); Version installedVersion = currentAddon.getId().getVersion(); if (latestVersion.compareTo(installedVersion) <= 0) { return Results.fail(Util.WINDUP_BRAND_NAME_ACRONYM+" CLI is already in the most updated version."); } distUpdater.replaceWindupDirectoryWithDistribution(latestDist); return Results.success("Sucessfully updated "+Util.WINDUP_BRAND_NAME_ACRONYM+" CLI to version " + latestDist.getVersion() + ". Please restart RHAMT CLI."); }
+ "' not empty and cannot be deleted without '--force' '-f' option."); else if (forceOption || prompt.promptBoolean("Delete '" + resource.getFullyQualifiedName() + "'?"))
if (existingDep != null) if (context.getPrompt().promptBoolean(String.format( "Dependency [%s:%s] is currently managed. " + "Reference the existing managed dependency [%s:%s:%s]?",