remove categories

This commit is contained in:
Chance 2025-01-11 15:12:18 -05:00 committed by BitSyndicate
parent b31b4c6d42
commit 3ccb504e8c
Signed by untrusted user: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
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());
}