- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 86 for renderUsing (0.22 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/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/PropertyReportRenderer.java
} catch (Exception e) { String valueClass = value != null ? String.valueOf(value.getClass()) : "null"; LOGGER.warn("Rendering of the property '{}' with value type '{}' failed with exception", name, valueClass, e); strValue = valueClass + " [Rendering failed]"; } getTextOutput().formatln("%s: %s", name, strValue); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Aug 24 15:02:02 UTC 2021 - 1.7K bytes - Viewed (0) -
subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/DependencyReportRenderer.java
*/ package org.gradle.api.tasks.diagnostics.internal; /** * Renders the model of a project dependency report. */ public interface DependencyReportRenderer extends ReportRenderer { /** * Starts rendering the given configuration. * * @param configuration The configuration. */ void startConfiguration(ConfigurationDetails configuration); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 12 17:41:29 UTC 2022 - 1.3K bytes - Viewed (0) -
operator/pkg/metrics/monitoring.go
"manifest_patch_error_total", "Number of times K8S patch overlays failed", ) // ManifestRenderErrorTotal counts errors occurred while rendering manifest. ManifestRenderErrorTotal = monitoring.NewSum( "manifest_render_error_total", "Number of times error occurred during rendering output manifest", ) // LegacyPathTranslationTotal counts the translations from legacy API to new one.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 15:35:03 UTC 2023 - 7K bytes - Viewed (0) -
subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/PropertyReportTaskTest.groovy
when: task.action() then: 1 * renderer.addProperty('group', '') 1 * renderer.addProperty('version', 'unspecified') } def "uses placeholder for rendering 'properties' property"() { when: task.action() then: 1 * renderer.addProperty('properties', '{...}') } def "can show a single property"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 12 17:41:29 UTC 2022 - 2.4K bytes - Viewed (0)