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: StringThe command’s name
description: StringThe description of the command
help: StringThe 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.