Struct calypso_repl::Command
source · pub struct Command<Ctx> {
pub(crate) name: String,
pub(crate) description: String,
pub(crate) help: String,
pub(crate) aliases: Vec<String>,
pub(crate) eval: Eval<Ctx>,
}
Fields§
§name: String
The command’s name
description: String
The description of the command
help: String
The help description of the command
aliases: Vec<String>
Aliases for this command
eval: Eval<Ctx>
A closure that evaluates the command’s input (excluding the command name and leading space) and returns something implementing Display
.