remove categories

This commit is contained in:
Chance 2025-01-11 15:12:18 -05:00 committed by BitSyndicate
parent 7093448efe
commit c563119c77
3 changed files with 4 additions and 47 deletions

View file

@ -1,8 +1,6 @@
use commands::{
ClearCommand, CounterCommand, ExecFile, ExitCommand, HelpCommand, PanicCommmand
ClearCommand, CounterCommand, ExitCommand, HelpCommand, PanicCommmand,ExecFile
};
use handler::{COMMAND_MANAGER, Category};
use zlua::ZLua;
use crate::commands;
@ -14,15 +12,12 @@ pub mod zlua;
pub fn setup() {
commands!(
HelpCommand,
ExecFile,
ClearCommand,
ExitCommand,
CounterCommand,
PanicCommmand,
zlua::ZLua
);
let cat = Category::new("cr", "Core", "Core commands");
COMMAND_MANAGER.write().add_category(cat.clone());
COMMAND_MANAGER
.write()
.add_command_with_category(Box::new(ExecFile), cat.clone());
}