io.quarkus.grpc.cli.GrpcCommand Maven / Gradle / Ivy
package io.quarkus.grpc.cli;
import java.util.concurrent.Callable;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Model.CommandSpec;
import picocli.CommandLine.Spec;
@Command(name = "grpc", sortOptions = false, header = "grpc", subcommands = {
ListCommand.class, DescribeCommand.class, InvokeCommand.class })
public class GrpcCommand implements Callable {
@Spec
protected CommandSpec spec;
@CommandLine.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();
}
public static void main(String[] args) {
int exitCode = new CommandLine(new GrpcCommand()).execute(args);
System.exit(exitCode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy