public class CliktCommandKt
| Modifier and Type | Method and Description |
|---|---|
static <T extends CliktCommand> |
context(T $receiver,
kotlin.jvm.functions.Function1<? super com.github.ajalt.clikt.core.Context.Builder,kotlin.Unit> block)
Configure this command's
class Context. |
static <T extends CliktCommand> |
subcommands(T $receiver,
java.lang.Iterable<? extends com.github.ajalt.clikt.core.CliktCommand> commands)
Add the given commands as a subcommand of this command.
|
static <T extends CliktCommand> |
subcommands(T $receiver,
com.github.ajalt.clikt.core.CliktCommand... commands)
Add the given commands as a subcommand of this command.
|
@NotNull public static <T extends CliktCommand> T subcommands(@NotNull T $receiver, @NotNull java.lang.Iterable<? extends com.github.ajalt.clikt.core.CliktCommand> commands)
Add the given commands as a subcommand of this command.
@NotNull public static <T extends CliktCommand> T subcommands(@NotNull T $receiver, @NotNull com.github.ajalt.clikt.core.CliktCommand... commands)
Add the given commands as a subcommand of this command.
@NotNull public static <T extends CliktCommand> T context(@NotNull T $receiver, @NotNull kotlin.jvm.functions.Function1<? super com.github.ajalt.clikt.core.Context.Builder,kotlin.Unit> block)
Configure this command's class Context.
Context property values are normally inherited from the parent context, but you can override any of them here.
class Context