build

fun build(): Command<C>

Build a Command from the current state of this builder

Return

built command


fun build(lambda: MutableCommandBuilder<C>.() -> Unit): Command<C>

Invoke the provided receiver lambda on this builder, then build a Command from the resulting state

Return

built command

Parameters

lambda

receiver lambda which will be invoked on builder before building