internal LambdaBasedCommandType BuildCommandType(IServiceProvider serviceProvider) { var commandType = new LambdaBasedCommandType( new LambdaBasedCommandMetadata(_commandName, _description, _usage, _samples.ToArray(), _hideFromHelpListing), _optionsBuilders.Select(builder => builder.ToCommandOption(serviceProvider)).ToList(), _executeCommand); return(commandType); }
internal LambdaBasedCommandTypeProvider(LambdaBasedCommandType commandType) { _commandType = commandType; }