Class GcurlBaseCommand

java.lang.Object
io.quarkus.grpc.cli.GcurlBaseCommand
All Implemented Interfaces:
Callable<Integer>
Direct Known Subclasses:
DescribeCommand, InvokeCommand, ListCommand

public abstract class GcurlBaseCommand extends Object implements Callable<Integer>
  • Field Details

    • spec

      picocli.CommandLine.Model.CommandSpec spec
    • unmatched

      List<String> unmatched
    • vertx

      io.vertx.core.Vertx vertx
  • Constructor Details

    • GcurlBaseCommand

      public GcurlBaseCommand()
  • Method Details

    • getAction

      protected abstract String getAction()
      The grpc subcommand (e.g. list, describe, invoke)
      Returns:
      the subcommand
    • execute

      protected abstract void execute(io.grpc.reflection.v1.MutinyServerReflectionGrpc.MutinyServerReflectionStub stub)
    • log

      protected void log(String msg)
    • err

      protected void err(String msg)
    • getFileDescriptorsFromProtos

      protected static List<com.google.protobuf.Descriptors.FileDescriptor> getFileDescriptorsFromProtos(List<com.google.protobuf.ByteString> protos)
    • call

      public Integer call()
      Specified by:
      call in interface Callable<Integer>
    • execute

      protected <X> X execute(Function<io.grpc.Channel,X> fn)