This commit is contained in:
sergeysav committed 2026-01-03 00:44:20 -05:00
1 parent 791518eb3d
commit f8ea1fb4f7
6 files changed
+36 -4

No files matched your search

+13
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(())
}
}