Skip to content

Commit

Permalink
Merge pull request #112: Add concurrency to update command
Browse files Browse the repository at this point in the history
  • Loading branch information
piegamesde authored Feb 26, 2025
2 parents 9d43294 + bbc4e09 commit b8fe4cb
Show file tree
Hide file tree
Showing 4 changed files with 271 additions and 48 deletions.
175 changes: 160 additions & 15 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ reqwest = { version = "^0.12.0", features = [ "rustls-tls" ], default-features =
async-trait = "0.1.52"
lenient_semver_parser = { version = "0.4.2", default-features = false }
lenient_version = { version = "0.4.2" }
futures = "0.3.31"
crossterm = { version = "0.28.1", default-features = false }

[dev-dependencies]
envtestkit = "1.1.2"
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ SUBCOMMANDS:
`default.nix` and never touch your sources.json
remove Removes one pin entry
show Lists the current pin entries
update Updates all or the given pin to the latest version
update Updates all or the given pins to the latest version
upgrade Upgrade the sources.json and default.nix to the latest format version. This may occasionally
break Nix evaluation!
```
Expand Down Expand Up @@ -314,7 +314,7 @@ You can decide to update only selected dependencies, or all at once. For some pi
```console
$ npins help update
npins-update 0.2.4
Updates all or the given pin to the latest version
Updates all or the given pins to the latest version

USAGE:
npins update [FLAGS] [OPTIONS] [names]...
Expand All @@ -327,11 +327,13 @@ FLAGS:
-p, --partial Don't update versions, only re-fetch hashes

OPTIONS:
-d, --directory <folder> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=]
[default: npins]
-d, --directory <folder>
Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]

--max-concurrent-downloads <max-concurrent-downloads> Maximum number of simultaneous downloads [default: 5]

ARGS:
<names>... Update only those pins
<names>... Updates only the specified pins
```

### Upgrading the pins file
Expand Down
Loading

0 comments on commit b8fe4cb

Please sign in to comment.