io.quarkus.cli.registry.ToggleRegistryClientMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-cli Show documentation
Show all versions of quarkus-cli Show documentation
Quarkus command line utility
package io.quarkus.cli.registry;
import picocli.CommandLine;
public class ToggleRegistryClientMixin extends RegistryClientMixin {
boolean useRegistryClient = true;
@CommandLine.Option(names = { "--registry-client" }, description = "Use the Quarkus extension catalog", negatable = true)
void setRegistryClient(boolean enabled) {
System.setProperty("quarkusRegistryClient", Boolean.toString(enabled));
useRegistryClient = enabled;
}
@Override
public boolean enabled() {
return useRegistryClient;
}
}