withComponent

fun <C, T> AggregateParserBuilder<C>.withComponent(builderDecorator: CommandComponent.Builder<C, T>.() -> Unit): AggregateParserBuilder<C>

Creates a new command component using the given builderDecorator.

Return

the updated builder

Parameters

builderDecorator

decorator that prepares the command component