Exemplo n.º 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);
        }
Exemplo n.º 2
0
 internal LambdaBasedCommandTypeProvider(LambdaBasedCommandType commandType)
 {
     _commandType = commandType;
 }