mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
12 lines
321 B
Rust
12 lines
321 B
Rust
use crate::{
|
|
context::command_context::CommandContext,
|
|
exceptions::command_syntax_exception::CommandSyntaxException,
|
|
};
|
|
use dyn_clonable::*;
|
|
|
|
pub const SINGLE_SUCCESS: i32 = 1;
|
|
|
|
#[clonable]
|
|
pub trait Command<S>: Clone {
|
|
fn run(&self, context: &mut CommandContext<S>) -> Result<i32, CommandSyntaxException>;
|
|
}
|