/// <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); }
/// <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); }