add window icon
This commit is contained in:
parent
7d4f7cbc1d
commit
9088d0aa49
12 changed files with 165 additions and 117 deletions
|
@ -5,7 +5,7 @@ use regex::Regex;
|
|||
|
||||
use super::{handler::Command, input::tokenize};
|
||||
use crate::core::repl::handler::COMMAND_MANAGER;
|
||||
use crate::error::{ZenyxError,ZenyxErrorKind};
|
||||
use crate::error::{ZenyxError, ZenyxErrorKind};
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct HelpCommand;
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
use std::collections::HashMap;
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use colored::Colorize;
|
||||
use parking_lot::RwLock;
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use crate::error::{ZenyxError, ZenyxErrorKind};
|
||||
|
||||
pub static COMMAND_MANAGER: LazyLock<RwLock<CommandManager>> = LazyLock::new(|| { RwLock::new(CommandManager::init()) });
|
||||
pub static COMMAND_MANAGER: LazyLock<RwLock<CommandManager>> =
|
||||
LazyLock::new(|| RwLock::new(CommandManager::init()));
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! commands {
|
||||
|
|
|
@ -6,9 +6,6 @@ pub mod commands;
|
|||
pub mod handler;
|
||||
pub mod input;
|
||||
|
||||
|
||||
|
||||
|
||||
pub fn setup() {
|
||||
commands!(
|
||||
HelpCommand,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue