Class MainCommand
java.lang.Object
org.junit.platform.console.command.MainCommand
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) AnsiColorOptionMixin(package private) CommandResult<?> (package private) picocli.CommandLine.Model.CommandSpecprivate final ConsoleTestExecutor.Factoryprivate booleanprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()intprivate static picocli.CommandLinegetLikelyExecutedCommand(picocli.CommandLine commandLine) Get the most likely executed subcommand, if any, or the main command otherwise.private static voidprintDeprecationWarning(String subcommand, Optional<String> triggeringOption, picocli.CommandLine commandLine) (package private) CommandResult<?> run(String[] args, Optional<OutputStreamConfig> outputStreamConfig) private ObjectrunCommand(String subcommand, Optional<String> triggeringOption) private static CommandResult<?> runCommand(picocli.CommandLine commandLine, String[] args, Optional<OutputStreamConfig> outputStreamConfig)
-
Field Details
-
consoleTestExecutorFactory
-
helpRequested
private boolean helpRequested -
helpRequested2
private boolean helpRequested2 -
versionHelpRequested
private boolean versionHelpRequested -
ansiColorOption
AnsiColorOptionMixin ansiColorOption -
allParameters
-
commandSpec
picocli.CommandLine.Model.CommandSpec commandSpec -
commandResult
CommandResult<?> commandResult
-
-
Constructor Details
-
MainCommand
MainCommand(ConsoleTestExecutor.Factory consoleTestExecutorFactory)
-
-
Method Details
-
call
-
getExitCode
public int getExitCode()- Specified by:
getExitCodein interfacepicocli.CommandLine.IExitCodeGenerator
-
runCommand
-
printDeprecationWarning
-
run
-
runCommand
private static CommandResult<?> runCommand(picocli.CommandLine commandLine, String[] args, Optional<OutputStreamConfig> outputStreamConfig) -
getLikelyExecutedCommand
private static picocli.CommandLine getLikelyExecutedCommand(picocli.CommandLine commandLine) Get the most likely executed subcommand, if any, or the main command otherwise.- See Also:
-