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.
|
public static <T extends CliktCommand> T subcommands(T $receiver, java.lang.Iterable<? extends com.github.ajalt.clikt.core.CliktCommand> commands)
Add the given commands as a subcommand of this command.
public static <T extends CliktCommand> T subcommands(T $receiver, com.github.ajalt.clikt.core.CliktCommand commands)
Add the given commands as a subcommand of this command.
public static <T extends CliktCommand> T context(T $receiver, 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