copy

Make a new copy of this MutableCommandBuilder

Return

a copy of this mutable builder


Make a new copy of this MutableCommandBuilder and invoke the provided receiver lambda on it

Return

a copy of this mutable builder

Parameters

lambda

receiver lambda which will be invoked on the new builder


fun copy(literal: String, description: Description, lambda: MutableCommandBuilder<C>.() -> Unit): MutableCommandBuilder<C>

Make a new copy of this MutableCommandBuilder, append a literal, and invoke the provided receiver lambda on it

Return

a copy of this mutable builder

Parameters

literal

name for the literal

description

description for the literal

lambda

receiver lambda which will be invoked on the new builder


Make a new copy of this MutableCommandBuilder, append a literal, and invoke the provided receiver lambda on it

Return

a copy of this mutable builder

Parameters

literal

name for the literal

lambda

receiver lambda which will be invoked on the new builder