Skip to content

Change 'APIKey' to 'ApiKey' #443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/code/PublishPSResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public sealed class PublishPSResource : PSCmdlet
/// </summary>
[Parameter()]
[ValidateNotNullOrEmpty]
public string APIKey { get; set; }
public string ApiKey { get; set; }

/// <summary>
/// Specifies the repository to publish to.
Expand Down Expand Up @@ -844,7 +844,7 @@ private void PushNupkg(string outputNupkgDir, string repoUrl)
sourceProvider: new PackageSourceProvider(settings),
packagePath: fullNupkgFile,
source: publishLocation,
apiKey: APIKey,
apiKey: ApiKey,
symbolSource: null,
symbolApiKey: null,
timeoutSeconds: 0,
Expand All @@ -865,10 +865,10 @@ private void PushNupkg(string outputNupkgDir, string repoUrl)
{
if (e.Message.Contains("API"))
{
var message = String.Format("{0} Please try running again with the -APIKey parameter and specific API key for the repository specified.", e.Message);
var message = String.Format("{0} Please try running again with the -ApiKey parameter and specific API key for the repository specified.", e.Message);
ex = new ArgumentException(message);
var APIKeyError = new ErrorRecord(ex, "APIKeyError", ErrorCategory.AuthenticationError, null);
WriteError(APIKeyError);
var ApiKeyError = new ErrorRecord(ex, "ApiKeyError", ErrorCategory.AuthenticationError, null);
WriteError(ApiKeyError);
}
else
{
Expand Down