Exemplo n.º 1
0
        /// <summary>
        /// Adds multiple commands to the application.
        /// </summary>
        public static ICliApplicationBuilder AddCommands(this ICliApplicationBuilder builder, IReadOnlyList <Type> commandTypes)
        {
            foreach (var commandType in commandTypes)
            {
                builder.AddCommand(commandType);
            }

            return(builder);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds multiple commands to the application.
        /// </summary>
        public static ICliApplicationBuilder AddCommands(this ICliApplicationBuilder builder, IReadOnlyList <Type> commandTypes)
        {
            builder.GuardNotNull(nameof(builder));
            commandTypes.GuardNotNull(nameof(commandTypes));

            foreach (var commandType in commandTypes)
            {
                builder.AddCommand(commandType);
            }

            return(builder);
        }