Skip to content

Commit

Permalink
Merge pull request #32 from soulsmods/feat/repl
Browse files Browse the repository at this point in the history
Command-line REPL
  • Loading branch information
github-actions[bot] authored Mar 25, 2024
2 parents 0e3c6a5 + 8ea78fb commit 07b07b4
Show file tree
Hide file tree
Showing 12 changed files with 470 additions and 148 deletions.
144 changes: 143 additions & 1 deletion Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fstools_dvdbnd.workspace = true

[dev-dependencies]
criterion = "0.5"
fstools_elden_ring_support.workspace = true
insta = "1"
libtest-mimic = "0.7"

Expand Down Expand Up @@ -50,9 +51,11 @@ ptr_cast_constness = "warn"
unwrap_used = "warn"

[workspace.dependencies]
fstools = { path = ".", version = "0.1.0" }
fstools_formats = { path = "crates/formats", version = "0.1.0" }
fstools_dvdbnd = { path = "crates/dvdbnd", version = "0.1.0" }
fstools_asset_server = { path = "crates/asset-server", version = "0.1.0" }
fstools_elden_ring_support = { path = "crates/support/elden_ring", version = "0.1.0" }
memmap2 = "0.9.4"
rayon = "1"
serde = "1"
Expand Down
7 changes: 6 additions & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ license.workspace = true
edition.workspace = true

[dependencies]
clap = { version = "4", features = ["derive"] }
clap = { version = "4", features = ["derive", "env", "unicode", "wrap_help"] }
console = "0.15"
directories = "5"
indicatif = { version = "0.17", features = ["rayon"] }
fstools_formats.workspace = true
fstools_dvdbnd.workspace = true
fstools_elden_ring_support.workspace = true
memmap2.workspace = true
rayon.workspace = true
rustyline = "14.0.0"
shlex = "1.3.0"

[lints]
workspace = true
4 changes: 2 additions & 2 deletions crates/cli/src/describe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
use fstools_dvdbnd::DvdBnd;
use fstools_formats::{bnd4::BND4, dcx::DcxHeader};

pub fn describe_bnd(dvd_bnd: DvdBnd, name: &str) -> Result<(), Box<dyn Error>> {
pub fn describe_bnd(dvd_bnd: &DvdBnd, name: &str) -> Result<(), Box<dyn Error>> {
let (dcx, mut reader) = DcxHeader::read(dvd_bnd.open(name)?)?;

let mut data = vec![];
Expand All @@ -24,6 +24,6 @@ pub fn describe_bnd(dvd_bnd: DvdBnd, name: &str) -> Result<(), Box<dyn Error>> {
Ok(())
}

pub fn describe_matbin(_dvd_bnd: DvdBnd, _name: &str) -> Result<(), Box<dyn Error>> {
pub fn describe_matbin(_dvd_bnd: &DvdBnd, _name: &str) -> Result<(), Box<dyn Error>> {
todo!()
}
Loading

0 comments on commit 07b07b4

Please sign in to comment.