Projects STRLCPY dum Commits b1c6c6b5
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    Cargo.lock
    skipped 3 lines
    4 4   
    5 5  [[package]]
    6 6  name = "dum"
    7  -version = "0.1.0"
     7 +version = "0.1.1"
    8 8  dependencies = [
    9 9   "pico-args",
    10 10   "serde_json",
    skipped 37 lines
  • ■ ■ ■ ■ ■ ■
    Cargo.toml
    1 1  [package]
    2 2  name = "dum"
    3  -version = "0.1.0"
     3 +version = "0.1.1"
    4 4  edition = "2021"
    5 5  license = "MIT"
    6 6  description = "An npm scripts runner"
    7  -author = "EGOIST <[email protected]>"
     7 +authors = ["EGOIST <[email protected]>"]
    8 8  homepage = "https://github.com/egoist/dum"
    9 9   
    10 10  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
    skipped 5 lines
  • ■ ■ ■ ■ ■
    src/main.rs
    skipped 30 lines
    31 31   println!("> {}", script);
    32 32   let remaining = args_to_string(&args.remaing_args);
    33 33   
    34  - let status = Command::new("sh")
    35  - .arg("-c")
     34 + let (sh, sh_flag) = if cfg!(target_os = "windows") {
     35 + ("cmd", "/C")
     36 + } else {
     37 + ("sh", "-c")
     38 + };
     39 + let status = Command::new(sh)
     40 + .arg(sh_flag)
    36 41   .arg([script, &remaining].join(" "))
    37 42   .env("PATH", get_path_env())
    38 43   .status()
    skipped 79 lines
Please wait...
Page is in error, reload to recover