/** * Returns a metadata object for this command. Default implementation * generates barebone metadata based on class name. * * @return metadata object describing current command. * @since 0.12 */ default CommandMetadata getMetadata() { return CommandMetadata.builder(getClass()).build(); } }
public HelpCommand(BootLogger bootLogger, Provider<HelpGenerator> helpGeneratorProvider) { super(CommandMetadata.builder(HelpCommand.class).description("Prints this message.").build()); this.bootLogger = bootLogger; this.helpGeneratorProvider = helpGeneratorProvider; }
public HelpConfigCommand(BootLogger bootLogger, Provider<ConfigHelpGenerator> helpGeneratorProvider) { super(CommandMetadata .builder(HelpConfigCommand.class) .description("Prints information about application modules and their configuration options.") .shortName('H')); this.bootLogger = bootLogger; this.helpGeneratorProvider = helpGeneratorProvider; }
/** * Returns a metadata object for this command. Default implementation * generates barebone metadata based on class name. * * @return metadata object describing current command. * @since 0.12 */ default CommandMetadata getMetadata() { return CommandMetadata.builder(getClass()).build(); } }
/** Constructor. * * @param compiler the SARL batch compiler. * @param configuration the configuration of the tool. * @param pathDetector the detector of path. * @param progressConfig the configuration of the progress bar. */ public CompilerCommand(Provider<SarlBatchCompiler> compiler, Provider<SarlConfig> configuration, Provider<PathDetector> pathDetector, Provider<ProgressBarConfig> progressConfig) { super(CommandMetadata .builder(CompilerCommand.class) .description(Messages.CompilerCommand_0)); this.compiler = compiler; this.configuration = configuration; this.pathDetector = pathDetector; this.progressConfig = progressConfig; }
private static CommandMetadata createMetadata() { return CommandMetadata .builder(ServerCommand.class) .description("Starts Undertow server.") .build(); } }
public HelpCommand(BootLogger bootLogger, Provider<HelpGenerator> helpGeneratorProvider) { super(CommandMetadata.builder(HelpCommand.class).description("Prints this message.").build()); this.bootLogger = bootLogger; this.helpGeneratorProvider = helpGeneratorProvider; }
public HelpConfigCommand(BootLogger bootLogger, Provider<ConfigHelpGenerator> helpGeneratorProvider) { super(CommandMetadata .builder(HelpConfigCommand.class) .description("Prints information about application modules and their configuration options.") .shortName('H')); this.bootLogger = bootLogger; this.helpGeneratorProvider = helpGeneratorProvider; }
/** Constructor. * * @param bootLogger the logger. */ public VersionCommand(BootLogger bootLogger) { super(CommandMetadata .builder(VersionCommand.class) .description(Messages.VersionCommand_0) .name(CLI_NAME)); this.bootLogger = bootLogger; }
private static CommandMetadata createMetadata() { return CommandMetadata.builder(EngineCommand.class).description("Starts Vertx engine.").build(); }
/** Constructor. * * @param bootLogger the logger. * @param contributions the provider of the extra-language contributions. */ public ExtraLanguageListCommand(BootLogger bootLogger, Provider<IExtraLanguageContributions> contributions) { super(CommandMetadata .builder(ExtraLanguageListCommand.class) .description(Messages.ExtraLanguageListCommand_0) .name(EXTRA_LANGUAGE_LIST_OPTION_NAME) .shortName(EXTRA_LANGUAGE_LIST_OPTION_SHORT_NAME)); this.bootLogger = bootLogger; this.contributions = contributions; }