Search in sources :

Example 1 with BesuCommand

use of org.hyperledger.besu.cli.BesuCommand in project besu by hyperledger.

the class Besu method main.

public static void main(final String... args) {
    final Logger logger = setupLogging();
    final BesuCommand besuCommand = new BesuCommand(logger, RlpBlockImporter::new, JsonBlockImporter::new, RlpBlockExporter::new, new RunnerBuilder(), new BesuController.Builder(), new BesuPluginContextImpl(), System.getenv());
    besuCommand.parse(new RunLast().andExit(SUCCESS_EXIT_CODE), besuCommand.exceptionHandler().andExit(ERROR_EXIT_CODE), System.in, args);
}
Also used : BesuPluginContextImpl(org.hyperledger.besu.services.BesuPluginContextImpl) BesuCommand(org.hyperledger.besu.cli.BesuCommand) BesuController(org.hyperledger.besu.controller.BesuController) JsonBlockImporter(org.hyperledger.besu.chainimport.JsonBlockImporter) RunLast(picocli.CommandLine.RunLast) RlpBlockImporter(org.hyperledger.besu.chainimport.RlpBlockImporter) RlpBlockExporter(org.hyperledger.besu.chainexport.RlpBlockExporter) Logger(org.slf4j.Logger)

Aggregations

RlpBlockExporter (org.hyperledger.besu.chainexport.RlpBlockExporter)1 JsonBlockImporter (org.hyperledger.besu.chainimport.JsonBlockImporter)1 RlpBlockImporter (org.hyperledger.besu.chainimport.RlpBlockImporter)1 BesuCommand (org.hyperledger.besu.cli.BesuCommand)1 BesuController (org.hyperledger.besu.controller.BesuController)1 BesuPluginContextImpl (org.hyperledger.besu.services.BesuPluginContextImpl)1 Logger (org.slf4j.Logger)1 RunLast (picocli.CommandLine.RunLast)1