All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.cli.registry.ToggleRegistryClientMixin Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy