io.quarkiverse.argocd.cli.ProjectCommand Maven / Gradle / Ivy
The newest version!
package io.quarkiverse.argocd.cli;
import java.util.concurrent.Callable;
import io.quarkiverse.argocd.cli.project.GenerateCommand;
import io.quarkiverse.argocd.cli.project.InstallCommand;
import io.quarkiverse.argocd.cli.project.ListCommand;
import io.quarkiverse.argocd.cli.project.UninstallCommand;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Model.CommandSpec;
import picocli.CommandLine.Option;
import picocli.CommandLine.Spec;
@Command(name = "project", sortOptions = false, mixinStandardHelpOptions = false, header = "ArgoCD Project", subcommands = {
ListCommand.class, InstallCommand.class, UninstallCommand.class, GenerateCommand.class })
public class ProjectCommand implements Callable {
@Spec
protected CommandSpec spec;
@Option(names = { "-h", "--help" }, usageHelp = true, description = "Display this help message.")
public boolean help;
@Override
public Integer call() {
CommandLine schemaCommand = spec.subcommands().get("list");
return schemaCommand.execute();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy