Projects STRLCPY dum Commits 907e7ae5
🤬
  • fix: forward args to `install` command

  • Loading...
  • EGOIST committed 2 years ago
    907e7ae5
    1 parent df737e5c
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    CHANGELOG.md
     1 +## v0.1.6
     2 + 
     3 +- Forward args to `install` command.
     4 + 
    1 5  ## v0.1.5
    2 6   
    3 7  - Alias script `t` to `test`, so `dum t` and `dum test` are equivalent.
    skipped 2 lines
  • ■ ■ ■ ■
    Cargo.lock
    skipped 42 lines
    43 43   
    44 44  [[package]]
    45 45  name = "dum"
    46  -version = "0.1.5"
     46 +version = "0.1.6"
    47 47  dependencies = [
    48 48   "dialoguer",
    49 49   "pico-args",
    skipped 216 lines
  • ■ ■ ■ ■
    Cargo.toml
    1 1  [package]
    2 2  name = "dum"
    3  -version = "0.1.5"
     3 +version = "0.1.6"
    4 4  edition = "2021"
    5 5  license = "MIT"
    6 6  description = "An npm scripts runner"
    skipped 10 lines
  • ■ ■ ■ ■ ■ ■
    src/main.rs
    skipped 43 lines
    44 44   return;
    45 45   }
    46 46   
     47 + let remaining = args_to_string(&args.remaining);
     48 + 
    47 49   // Run npm install if the script_name is "install"
    48 50   if args.script_name == "install" {
    49 51   let pm = install::guess_package_manager(&execute_dir);
    skipped 4 lines
    54 56   }
    55 57   
    56 58   run_command(
    57  - &[&pm.unwrap(), "install"],
     59 + &[&pm.unwrap(), "install", &remaining],
    58 60   &RunOptions {
    59 61   current_dir: execute_dir,
    60 62   envs: HashMap::new(),
    skipped 10 lines
    71 73   .and_then(|script| script.as_str())
    72 74   .map(|script| {
    73 75   println!("> {}", script);
    74  - let remaining = args_to_string(&args.remaining);
     76 + 
    75 77   let envs =
    76 78   HashMap::from([("PATH".to_string(), get_path_env(&bin_dir.to_str().unwrap()))]);
    77 79   
    skipped 135 lines
Please wait...
Page is in error, reload to recover