Skip to content

Commit

Permalink
Added version-option to NugetUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter af Geijerstam committed Apr 7, 2017
1 parent 65e145d commit 4f41aa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/FakeLib/NuGet/Update.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ type NugetUpdateParams =
Sources: string list
/// Packages to update. Update all if empty.
Ids: string list
/// Version to update to. Default `None`. Used to upgrade/downgrade to a explicit version of a package.
Version: string option
/// Folder to store packages in. Default `./packages`.
RepositoryPath: string
/// Looks for updates with the highest version available within the same major and minor version as the installed package. Default `false`.
Expand All @@ -38,6 +40,7 @@ let NugetUpdateDefaults =
Retries = 5
Sources = []
Ids = []
Version = None
RepositoryPath = "./packages"
Safe = false
Verbose = false
Expand All @@ -50,6 +53,7 @@ let buildArgs (param: NugetUpdateParams) =
[ param.Sources |> argList "source"
param.Ids |> argList "id"
[param.RepositoryPath] |> argList "repositoryPath"
param.Version |> Option.toList |> argList "Version"
(if param.Safe then "-safe" else "")
(if param.Prerelease then "-prerelease" else "")
(if param.NonInteractive then "-nonInteractive" else "")
Expand Down

0 comments on commit 4f41aa3

Please sign in to comment.