Package io.micronaut.starter.cli.command
Class BaseCommand
java.lang.Object
io.micronaut.starter.cli.command.BaseCommand
- All Implemented Interfaces:
ConsoleOutput
- Direct Known Subclasses:
BuilderCommand
,CodeGenCommand
,CreateCommand
,MicronautStarter
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommonOptionsMixin
protected picocli.CommandLine.Model.CommandSpec
Fields inherited from interface io.micronaut.starter.io.ConsoleOutput
NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
@NonNull Optional<PrintWriter>
@Nullable OperatingSystem
@NonNull Optional<picocli.CommandLine.Model.CommandSpec>
getSpec()
void
void
@NonNull Optional<PrintWriter>
void
boolean
boolean
verbose()
void
-
Field Details
-
spec
protected picocli.CommandLine.Model.CommandSpec spec -
commonOptions
-
-
Constructor Details
-
BaseCommand
public BaseCommand()
-
-
Method Details
-
out
- Specified by:
out
in interfaceConsoleOutput
-
err
- Specified by:
err
in interfaceConsoleOutput
-
warning
- Specified by:
warning
in interfaceConsoleOutput
-
green
- Specified by:
green
in interfaceConsoleOutput
-
red
- Specified by:
red
in interfaceConsoleOutput
-
showStacktrace
public boolean showStacktrace()- Specified by:
showStacktrace
in interfaceConsoleOutput
-
verbose
public boolean verbose()- Specified by:
verbose
in interfaceConsoleOutput
-
getOperatingSystem
-
outWriter
-
errWriter
-
getSpec
-