Skip to content
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

update System.CommandLine #1356

Merged
merged 2 commits into from
Jan 31, 2025
Merged

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.

<Dependency Name="System.CommandLine.Rendering" Version="0.4.0-alpha.23307.1">
<Uri>https://github.com/dotnet/command-line-api</Uri>
<Sha>02fe27cd6a9b001c8feb7938e6ef4b3799745759</Sha>
<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
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