- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for renderUsing (0.46 sec)
-
platforms/core-runtime/daemon-services/src/main/java/org/gradle/api/internal/tasks/userinput/Choice.java
* * @return this */ Choice<T> whenNotConnected(T defaultOption); /** * Specifies how to display each option. * * @return this */ Choice<T> renderUsing(Function<T, String> renderer); /** * Prompts the user to select an option. */ T ask();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/NonInteractiveUserInputHandlerTest.groovy
.whenNotConnected(2) .ask() == 2 } def "ignores option renderer"() { expect: userInputHandler.choice('Select count', [1, 2, 3]) .renderUsing { throw new RuntimeException() } .ask() == 1 } def "always returns default for int question"() { expect: userInputHandler.askIntQuestion('Enter something', 1, 2) == 2 }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/daemon-services/src/main/java/org/gradle/api/internal/tasks/userinput/NonInteractiveUserInputHandler.java
private T defaultOption; NonInteractiveChoiceBuilder(Collection<T> options) { defaultOption = options.iterator().next(); } @Override public Choice<T> renderUsing(Function<T, String> renderer) { // Ignore, the values are never rendered return this; } @Override public Choice<T> defaultOption(T defaultOption) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-runtime/daemon-services/src/main/java/org/gradle/api/internal/tasks/userinput/DefaultUserInputHandler.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 7.7K bytes - Viewed (0) -
platforms/software/build-init/src/main/java/org/gradle/buildinit/tasks/InitBuild.java
} return userQuestions.choice("Select application structure", initializer.getModularizationOptions()) .renderUsing(ModularizationOption::getDisplayName) .ask(); } private boolean shouldUseIncubatingAPIs(UserQuestions userQuestions) { if (this.useIncubatingAPIs.isPresent()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 10 12:58:10 UTC 2024 - 24.9K bytes - Viewed (0) -
platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/DefaultUserInputHandlerTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 14.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/execution/plan/DefaultNodeValidator.java
.forEach(problem -> { // Because our deprecation warning system doesn't support multiline strings (bummer!) both in rendering // **and** testing (no way to capture multiline deprecation warnings), we have to resort to removing details // and rendering String warning = convertToSingleLine(renderMinimalInformationAbout(problem, false, false));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat May 04 07:42:50 UTC 2024 - 4.7K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtAbstractFirDiagnostic.kt
import org.jetbrains.kotlin.analysis.api.lifetime.withValidityAssertion import org.jetbrains.kotlin.diagnostics.KtDiagnostic import org.jetbrains.kotlin.diagnostics.KtPsiDiagnostic import org.jetbrains.kotlin.diagnostics.rendering.RootDiagnosticRendererFactory internal abstract class KaAbstractFirDiagnostic<PSI : PsiElement>( private val firDiagnostic: KtPsiDiagnostic, override val token: KaLifetimeToken,
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/core-runtime/logging-api/src/main/java/org/gradle/api/logging/configuration/WarningMode.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 1.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/operations/logging/LoggingBuildOperationProgressBroadcaster.java
* with regard to console rendering and effectively emulate. * * Ideally, we would emit a more concrete model. * This would be something like more clearly separating logging output from “user code” from Gradle's “UI” output, * and separately observing it from rendering instructions. * This may come later. * * @since 4.7 */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 06:02:18 UTC 2024 - 5.5K bytes - Viewed (0)