Skip to content

Commit

Permalink
testing things
Browse files Browse the repository at this point in the history
  • Loading branch information
melody-rs committed Sep 30, 2024
1 parent 8478e7b commit d6226f0
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions crates/command_parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions crates/command_parser/src/main.rs
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit d6226f0

Please sign in to comment.