Class CreateGrpcServiceCommand
java.lang.Object
io.micronaut.starter.cli.command.BaseCommand
io.micronaut.starter.cli.command.CodeGenCommand
io.micronaut.starter.cli.feature.grpc.CreateGrpcServiceCommand
- All Implemented Interfaces:
ConsoleOutput
,Callable<Integer>
-
Field Summary
Fields inherited from class io.micronaut.starter.cli.command.CodeGenCommand
beanContext, config, consoleOutput, outputHandlerSupplier, overwrite
Fields inherited from class io.micronaut.starter.cli.command.BaseCommand
commonOptions, spec
Fields inherited from interface io.micronaut.starter.io.ConsoleOutput
NOOP
-
Constructor Summary
ConstructorDescriptionCreateGrpcServiceCommand
(CodeGenConfig config, io.micronaut.core.util.functional.ThrowingSupplier<OutputHandler, IOException> outputHandlerSupplier, ConsoleOutput consoleOutput) -
Method Summary
Modifier and TypeMethodDescriptionboolean
applies()
call()
protected @NonNull CreateProtoServiceCommand
Creates theCreateProtoServiceCommand
.void
setServiceName
(String serviceName) Sets the service name to generate.Methods inherited from class io.micronaut.starter.cli.command.CodeGenCommand
err, getCommand, getProject, getTemplateRenderer, getTemplateRenderer, out, setBeanContext, warning
Methods inherited from class io.micronaut.starter.cli.command.BaseCommand
errWriter, getOperatingSystem, getSpec, green, outWriter, red, showStacktrace, verbose
-
Field Details
-
serviceName
-
-
Constructor Details
-
CreateGrpcServiceCommand
-
CreateGrpcServiceCommand
public CreateGrpcServiceCommand(CodeGenConfig config, io.micronaut.core.util.functional.ThrowingSupplier<OutputHandler, IOException> outputHandlerSupplier, ConsoleOutput consoleOutput)
-
-
Method Details
-
setServiceName
Sets the service name to generate.- Parameters:
serviceName
- The service name
-
applies
public boolean applies()- Specified by:
applies
in classCodeGenCommand
-
call
- Throws:
Exception
-
getCreateProtoServiceCommand
Creates theCreateProtoServiceCommand
.- Returns:
- The
CreateProtoServiceCommand
.
-