forked from cake-build/cake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cake-build#3553) Add DotNetNuGetPush aliases (synonym to DotNetCoreN…
…uGetPush)
- Loading branch information
1 parent
926398d
commit 7ff3b37
Showing
5 changed files
with
166 additions
and
90 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
89 changes: 89 additions & 0 deletions
89
src/Cake.Common/Tools/DotNet/NuGet/Push/DotNetNuGetPushSettings.cs
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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using Cake.Common.Tools.DotNetCore; | ||
using Cake.Common.Tools.DotNetCore.NuGet.Push; | ||
|
||
namespace Cake.Common.Tools.DotNet.NuGet.Push | ||
{ | ||
/// <summary> | ||
/// Contains settings used by <see cref="DotNetCoreNuGetPusher" />. | ||
/// </summary> | ||
public class DotNetNuGetPushSettings : DotNetCoreSettings | ||
{ | ||
/// <summary> | ||
/// Gets or sets a value indicating the server URL. | ||
/// </summary> | ||
/// <remarks> | ||
/// This option is required unless DefaultPushSource config value is set in the NuGet config file. | ||
/// </remarks> | ||
public string Source { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating the symbol server URL. | ||
/// </summary> | ||
public string SymbolSource { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to append "api/v2/package" to the source URL. | ||
/// </summary> | ||
/// <remarks> | ||
/// Available since .NET Core 2.1 SDK. | ||
/// </remarks> | ||
public bool NoServiceEndpoint { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to block and require manual action for operations like authentication. | ||
/// </summary> | ||
/// <remarks> | ||
/// Available since .NET Core 2.2 SDK. | ||
/// </remarks> | ||
public bool Interactive { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating timeout for pushing to a server in seconds. | ||
/// <remarks> | ||
/// Defaults to 300 seconds (5 minutes). Specifying 0 (zero seconds) applies the default value. | ||
/// </remarks> | ||
/// </summary> | ||
public int? Timeout { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating the API key for the server. | ||
/// </summary> | ||
public string ApiKey { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating the API key for the symbol server. | ||
/// </summary> | ||
public string SymbolApiKey { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether buffering is disabled when pushing to an HTTP(S) server. | ||
/// </summary> | ||
/// <remarks> | ||
/// This decreases memory usage. | ||
/// </remarks> | ||
public bool DisableBuffering { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether symbols should be not be pushed if present. | ||
/// </summary> | ||
public bool IgnoreSymbols { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether, when pushing multiple packages to an HTTP(S) server, | ||
/// to treat any 409 Conflict response as a warning so that the push can continue. | ||
/// </summary> | ||
/// <remarks> | ||
/// Available since .NET Core 3.1 SDK. | ||
/// </remarks> | ||
public bool SkipDuplicate { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to force command-line output in English. | ||
/// </summary> | ||
public bool ForceEnglishOutput { get; set; } | ||
} | ||
} |
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