-
Notifications
You must be signed in to change notification settings - Fork 124
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
Conversation
string? password = parseResult.GetValue(passwordArg); | ||
bool offline = parseResult.GetValue(offlineArg); | ||
|
||
return TestAsync(path, authMethod, authEncoding, user, password, offline, parseResult, cancellationToken); |
There was a problem hiding this comment.
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) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not required, S.CL will do this on it's own, we just need to pass the CancellationToken
eng/Version.Details.xml
Outdated
<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"> |
There was a problem hiding this comment.
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.
This reverts commit 3c34adc.
This reverts commit 3c34adc.
…al of two dependencies (dotnet#1363) This reverts commit 3ce7edb.
This PR consists of: