From d6226f05ac12121923f2f154c6c130ea8dc258d4 Mon Sep 17 00:00:00 2001 From: Melody Madeline Lyons Date: Mon, 30 Sep 2024 13:40:09 -0700 Subject: [PATCH] testing things --- Cargo.lock | 10 ++++++++++ crates/command_parser/Cargo.toml | 23 +++++++++++++++++++++++ crates/command_parser/src/main.rs | 23 +++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 crates/command_parser/Cargo.toml create mode 100644 crates/command_parser/src/main.rs diff --git a/Cargo.lock b/Cargo.lock index 560ad161..936ea3df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1154,6 +1154,16 @@ dependencies = [ "memchr", ] +[[package]] +name = "command_parser" +version = "0.4.0" +dependencies = [ + "luminol-config", + "luminol-core", + "luminol-data", + "luminol-filesystem", +] + [[package]] name = "concurrent-queue" version = "2.4.0" diff --git a/crates/command_parser/Cargo.toml b/crates/command_parser/Cargo.toml new file mode 100644 index 00000000..579639b3 --- /dev/null +++ b/crates/command_parser/Cargo.toml @@ -0,0 +1,23 @@ +[package] +name = "command_parser" + +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +rust-version.workspace = true +readme.workspace = true +repository.workspace = true +keywords.workspace = true +categories.workspace = true + +[lints] +workspace = true + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +luminol-filesystem.workspace = true +luminol-config.workspace = true +luminol-data.workspace = true +luminol-core.workspace = true diff --git a/crates/command_parser/src/main.rs b/crates/command_parser/src/main.rs new file mode 100644 index 00000000..ec833d8d --- /dev/null +++ b/crates/command_parser/src/main.rs @@ -0,0 +1,23 @@ +fn main() { + let mut filesystem = luminol_filesystem::project::FileSystem::new(); + // hardcoding the path for now + let host = luminol_filesystem::host::FileSystem::new("/mnt/hdd/Git/OSFM-GitHub"); + + let mut global_config = luminol_config::global::Config::new(); + let mut config = None; + + let _ = filesystem + .load_project(host, &mut config, &mut global_config) + .unwrap(); + + let mut config = config.unwrap(); + + let mut toasts = luminol_core::Toasts::default(); + let mut data_cache = luminol_core::Data::Unloaded; + data_cache + .load(&filesystem, &mut toasts, &mut config) + .unwrap(); + + let mut map = data_cache.get_or_load_map(1, &filesystem, &config); + let event = map.events.remove(1); +}