Skip to content

Conversation

@adamsitnik
Copy link
Member

This PR consists of:

string? password = parseResult.GetValue(passwordArg);
bool offline = parseResult.GetValue(offlineArg);

return TestAsync(path, authMethod, authEncoding, user, password, offline, parseResult, cancellationToken);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CommandHandler.Create was part of NamingConventionBinder which would use reflection just to achieve what I've written here

var authenticationHeader = (authMethod != null) ? GetAuthenticationHeader(authMethod, authEncoding ?? Encoding.ASCII, user!, password!) : null;

var cancellationSource = new CancellationTokenSource();
Console.CancelKeyPress += (sender, e) =>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<Sha>060374e56c1b2e741b6525ca8417006efb54fbd7</Sha>
</Dependency>
<!-- Intermediate is necessary for source build. -->
<Dependency Name="Microsoft.SourceBuild.Intermediate.command-line-api" Version="0.1.430701">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The source-build error in CI will go away when you update this version to the corresponding one that matches the new version.

@ViktorHofer ViktorHofer merged commit 3c34adc into dotnet:main Jan 31, 2025
10 checks passed
adamsitnik added a commit to adamsitnik/sourcelink that referenced this pull request Feb 6, 2025
adamsitnik added a commit to adamsitnik/sourcelink that referenced this pull request Feb 6, 2025
ViktorHofer pushed a commit that referenced this pull request Feb 6, 2025
…wo dependencies (#1363)

* Revert "update System.CommandLine (#1356)"

This reverts commit 3c34adc.

* remove the dependencies to System.CommandLine.Rendering and System.CommandLine.NamingConventionBinder
adamsitnik added a commit to adamsitnik/sourcelink that referenced this pull request Feb 6, 2025
ViktorHofer pushed a commit that referenced this pull request Apr 14, 2025
* Reapply "update System.CommandLine (#1356)", but keep the removal of two dependencies (#1363)

This reverts commit 3ce7edb.

* Apply suggestions from code review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants