Exemple #1
0
        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);
        }
Exemple #2
0
 internal LambdaBasedCommandTypeProvider(LambdaBasedCommandType commandType)
 {
     _commandType = commandType;
 }