Class CamelJBangMain
java.lang.Object
org.apache.camel.dsl.jbang.core.commands.CamelJBangMain
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()static picocli.CommandLinegetOut()Gets the main output printer to write command output.voidquit(int exitCode) Finish this main with given exit code.static voidstatic voidrun(CamelJBangMain main, String... args) voidSets the main output printer.withPrinter(Printer out) Uses this printer for writing command output.
-
Constructor Details
-
CamelJBangMain
public CamelJBangMain()
-
-
Method Details
-
run
-
run
-
quit
public void quit(int exitCode) Finish this main with given exit code. By default, uses system exit to terminate. Subclasses may want to overwrite this exit behavior e.g. during unit tests.- Parameters:
exitCode-
-
call
-
getOut
Gets the main output printer to write command output.- Returns:
- the printer.
-
setOut
Sets the main output printer.- Parameters:
out- the printer to use for command output.
-
withPrinter
Uses this printer for writing command output.- Parameters:
out- to use with this main.
-
getCommandLine
public static picocli.CommandLine getCommandLine()
-