CommandContext

interface CommandContext

Context for a command execution.

Design note

Parsing is intentionally not part of this contract. A platform adapter may provide only tokenized args, or pre-parsed structured args.

Properties

Link copied to clipboard
abstract val args: List<String>

Tokenized arguments after the label (no quoting guarantees).

Link copied to clipboard
abstract val label: String

The label used to invoke the command (may be an alias).

Link copied to clipboard
abstract val sender: CommandSender

Sender of the command.