This commit is contained in:
2026-01-03 00:44:20 -05:00
parent 791518eb3d
commit f8ea1fb4f7
6 changed files with 36 additions and 4 deletions

View File

@@ -45,3 +45,16 @@ pub trait IntoCommandDefinition: Sized {
fn parse(command: Command) -> Result<Self, IntoCommandDefinitionError>;
}
impl IntoCommandDefinition for () {
fn create(name: String) -> CommandDefinition {
CommandDefinition {
name,
parameters: vec![],
}
}
fn parse(_: Command) -> Result<Self, IntoCommandDefinitionError> {
Ok(())
}
}