public static ICompositeCommandBuilder DefineCompositeCommand(this ICompositeCommandBuilder builder, string name, Action <ICompositeCommandBuilder> action) { var childBuilder = new CompositeCommandBuilder(name); action(childBuilder); return(builder.DefineCommand(childBuilder.Build())); }
public static ICompositeCommandBuilder DefineCompositeCatchAllCommand(this ICompositeCommandBuilder builder, Action <ICompositeCommandBuilder> action) { var childBuilder = new CompositeCommandBuilder(); action(childBuilder); return(builder.DefineCatchAllCommand(childBuilder.Build())); }