mirror of
https://github.com/nix-community/nixpkgs-update.git
synced 2024-09-11 14:05:43 +03:00
add new UpdateBatch command
This commit is contained in:
parent
934b497d8e
commit
f5af634341
@ -33,6 +33,7 @@ data UpdateOptions = UpdateOptions
|
||||
data Command
|
||||
= UpdateList UpdateOptions
|
||||
| Update UpdateOptions Text
|
||||
| UpdateBatch UpdateOptions Text
|
||||
| DeleteDone Bool
|
||||
| Version
|
||||
| UpdateVulnDB
|
||||
@ -70,6 +71,9 @@ commandParser =
|
||||
<> O.command
|
||||
"update"
|
||||
(O.info (updateParser) (O.progDesc "Update one package"))
|
||||
<> O.command
|
||||
"update-batch"
|
||||
(O.info (updateParser) (O.progDesc "Update one package in batch mode."))
|
||||
<> O.command
|
||||
"delete-done"
|
||||
( O.info
|
||||
@ -143,6 +147,9 @@ main = do
|
||||
Update UpdateOptions {pr, cve, nixpkgsReview, outpaths, attrpathOpt} update -> do
|
||||
Git.setupNixpkgs token
|
||||
updatePackage (Options pr False ghUser token cve nixpkgsReview outpaths attrpathOpt) update
|
||||
UpdateBatch UpdateOptions {pr, cve, nixpkgsReview, outpaths, attrpathOpt} update -> do
|
||||
Git.setupNixpkgs token
|
||||
updatePackage (Options pr True ghUser token cve nixpkgsReview outpaths attrpathOpt) update
|
||||
Version -> do
|
||||
v <- runExceptT Nix.version
|
||||
case v of
|
||||
|
Loading…
Reference in New Issue
Block a user