forked from Astrabit-ST/Luminol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |