-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement --no-install and --redirects for "paket update".
This commit also contains the following changes: - Merge SmallInstallOptions into InstallerOptions. - Add UpdaterOptions.
- Loading branch information
1 parent
a35481e
commit d6abb44
Showing
9 changed files
with
59 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
namespace Paket | ||
|
||
// Options for UpdateProcess and InstallProcess. | ||
/// Force - Force the download and reinstallation of all packages | ||
/// Hard - Replace package references within project files even if they are not yet adhering | ||
/// to the Paket's conventions (and hence considered manually managed) | ||
/// Redirects - Create binding redirects for the NuGet packages | ||
/// Force - Force the download and reinstallation of all packages | ||
/// Hard - Replace package references within project files even if they are not yet adhering | ||
/// to the Paket's conventions (and hence considered manually managed) | ||
/// Redirects - Create binding redirects for the NuGet packages | ||
/// OnlyReferenced - Only install packages that are referenced in paket.references files. | ||
type InstallerOptions = | ||
{ Force : bool | ||
Hard : bool | ||
Redirects : bool } | ||
Redirects : bool | ||
OnlyReferenced : bool } | ||
|
||
static member Default = | ||
{ Force = false | ||
Hard = false | ||
Redirects = false } | ||
Redirects = false | ||
OnlyReferenced = false } | ||
|
||
static member createLegacyOptions(force, hard, redirects) = | ||
{ InstallerOptions.Default with | ||
Force = force | ||
Hard = hard | ||
Redirects = redirects } | ||
|
||
type SmartInstallOptions = | ||
type UpdaterOptions = | ||
{ Common : InstallerOptions | ||
OnlyReferenced : bool } | ||
NoInstall : bool } | ||
|
||
static member Default = | ||
{ Common = InstallerOptions.Default | ||
OnlyReferenced = false } | ||
NoInstall = false } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters