Skip to content

Commit

Permalink
Add support for IgnoreCache to app.config
Browse files Browse the repository at this point in the history
  • Loading branch information
trondd committed Aug 31, 2017
1 parent 3b08695 commit 480f773
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Paket.Bootstrapper/ArgumentParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static class AppSettingKeys
public const string NugetSource = "NugetSource";
public const string PaketVersion = "PaketVersion";
public const string Prerelease = "Prerelease";
public const string IgnoreCache = "IgnoreCache";
}
public static class EnvArgs
{
Expand Down Expand Up @@ -137,6 +138,11 @@ private static void FillOptionsFromAppSettings(BootstrapperOptions options, Name
{
options.DownloadArguments.NugetSource = nugetSource;
}
if (appSettings.IsTrue(AppSettingKeys.IgnoreCache))
{
options.DownloadArguments.IgnoreCache = true;
}

}

private static void FillOptionsFromEnvVariables(BootstrapperOptions options, IDictionary envVariables)
Expand Down

0 comments on commit 480f773

Please sign in to comment.