1/// Defines the trait for commands to implement. 2pub trait Command { 3 fn name(&self) -> &str; 4 fn aliases(&self) -> &[&str] { 5 &[] 6 } 7 fn help(&self) -> Option<&str> { 8 None 9 } 10 fn hidden(&self) -> bool { 11 false 12 } 13 fn execute(&self, args: &[String]); 14}