Skip to content

Commit

Permalink
cmd_lib = "1.9.4"
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-q committed Jul 19, 2024
1 parent d05518e commit a11d17c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ crossbeam = "0.8.2"
rust_xlsxwriter = "0.43.0"

which = "4.4.0"
cmd_lib = "1.3.0"
cmd_lib = "1.9.4"
tempfile = "3.6.0"
path-clean = "1.0.1"

Expand Down
7 changes: 4 additions & 3 deletions src/cmd_fasr/pl_p2m.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ pub fn execute(args: &ArgMatches) -> anyhow::Result<()> {
let curdir = env::current_dir()?;
let fasr = env::current_exe().unwrap().display().to_string();

use_builtin_cmd!(echo, cat);
run_cmd!(echo "==> Paths")?;
run_cmd!(echo " \"fasr\" = ${fasr}")?;
run_cmd!(echo " \"curdir\" = ${curdir}")?;
Expand Down Expand Up @@ -107,12 +106,14 @@ pub fn execute(args: &ArgMatches) -> anyhow::Result<()> {
.iter()
.map(|e| e.1.get(1).unwrap().to_string())
.collect();
let files = infiles.clone();
run_cmd!(
spanr compare --op intersect $[infiles] |
spanr compare --op intersect $[files] |
spanr span stdin --op excise -n 10 -o intersect.json
)?;
let files = infiles.clone();
run_cmd!(
spanr merge $[infiles] intersect.json -o merge.json
spanr merge $[files] intersect.json -o merge.json
)?;
}

Expand Down
2 changes: 0 additions & 2 deletions src/cmd_rgr/pl_2rmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ pub fn execute(args: &ArgMatches) -> anyhow::Result<()> {
let tempdir = TempDir::new().unwrap();
let tempdir_str = tempdir.path().to_str().unwrap();

init_builtin_logger();
use_builtin_cmd!(echo, info, cat);
run_cmd!(info "==> Paths")?;
run_cmd!(info " \"rgr\" = ${rgr}")?;
run_cmd!(info " \"curdir\" = ${curdir}")?;
Expand Down

0 comments on commit a11d17c

Please sign in to comment.