File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 10
10
<PackageVersion Include =" Microsoft.CodeAnalysis.PublicApiAnalyzers" Version =" 4.14.0" />
11
11
<PackageVersion Include =" Microsoft.CSharp" Version =" 4.7.0" />
12
12
<PackageVersion Include =" Microsoft.Extensions.DependencyInjection" Version =" 9.0.0" />
13
- <PackageVersion Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 9.0.6 " />
13
+ <PackageVersion Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 9.0.7 " />
14
14
<PackageVersion Include =" Polly" Version =" 8.6.0" />
15
15
<PackageVersion Include =" Roslynator.Analyzers" Version =" 4.13.1" />
16
16
<PackageVersion Include =" Roslynator.Formatting.Analyzers" Version =" 4.13.1" />
20
20
<PackageVersion Include =" Serilog.Sinks.Console" Version =" 6.0.0" />
21
21
<PackageVersion Include =" Serilog.Sinks.File" Version =" 7.0.0" />
22
22
<PackageVersion Include =" Serilog.Sinks.Map" Version =" 2.0.0" />
23
- <PackageVersion Include =" System.CommandLine" Version =" 2.0.0-beta7.25353 .2" />
23
+ <PackageVersion Include =" System.CommandLine" Version =" 2.0.0-beta7.25358 .2" />
24
24
<PackageVersion Include =" System.IO.Abstractions" Version =" 22.0.15" />
25
- <PackageVersion Include =" System.Text.Json" Version =" 9.0.6 " />
25
+ <PackageVersion Include =" System.Text.Json" Version =" 9.0.7 " />
26
26
</ItemGroup >
27
27
</Project >
Original file line number Diff line number Diff line change 1
- using System . CommandLine ;
2
1
using GitVersion . Extensions ;
3
2
using GitVersion . Generated ;
4
3
using GitVersion . Infrastructure ;
@@ -9,20 +8,19 @@ namespace GitVersion;
9
8
// ReSharper disable once ClassNeverInstantiated.Global
10
9
internal class GitVersionApp ( RootCommandImpl rootCommand )
11
10
{
12
- private readonly RootCommandImpl rootCommand = rootCommand . NotNull ( ) ;
11
+ private readonly RootCommandImpl _rootCommand = rootCommand . NotNull ( ) ;
13
12
14
13
public Task < int > RunAsync ( string [ ] args , CancellationToken cancellationToken )
15
14
{
16
- var cliConfiguration = new CommandLineConfiguration ( rootCommand ) ;
17
- var parseResult = cliConfiguration . Parse ( args ) ;
15
+ var parseResult = this . _rootCommand . Parse ( args ) ;
18
16
19
17
var logFile = parseResult . GetValue < FileInfo ? > ( GitVersionSettings . LogFileOption ) ;
20
18
var verbosity = parseResult . GetValue < Verbosity ? > ( GitVersionSettings . VerbosityOption ) ?? Verbosity . Normal ;
21
19
22
20
if ( logFile ? . FullName != null ) LoggingEnricher . Path = logFile . FullName ;
23
21
LoggingEnricher . LogLevel . MinimumLevel = GetLevelForVerbosity ( verbosity ) ;
24
22
25
- return parseResult . InvokeAsync ( cancellationToken ) ;
23
+ return parseResult . InvokeAsync ( cancellationToken : cancellationToken ) ;
26
24
}
27
25
28
26
// Note: there are 2 locations to watch for dotnet-suggest
Original file line number Diff line number Diff line change 37
37
<PackageVersion Include =" NUnit.Analyzers" Version =" 4.9.2" />
38
38
<PackageVersion Include =" NUnit3TestAdapter" Version =" 5.0.0" />
39
39
<PackageVersion Include =" Shouldly" Version =" 4.3.0" />
40
- <PackageVersion Include =" System.Collections.Immutable" Version =" 9.0.2 " />
40
+ <PackageVersion Include =" System.Collections.Immutable" Version =" 9.0.7 " />
41
41
<PackageVersion Include =" System.Drawing.Common" Version =" 9.0.7" />
42
42
<PackageVersion Include =" System.IO.Abstractions" Version =" 22.0.15" />
43
- <PackageVersion Include =" System.Reflection.Metadata" Version =" 9.0.2 " />
43
+ <PackageVersion Include =" System.Reflection.Metadata" Version =" 9.0.7 " />
44
44
<PackageVersion Include =" System.Security.Cryptography.Xml" Version =" 9.0.7" />
45
45
<PackageVersion Include =" System.Text.Json" Version =" 9.0.7" />
46
46
<PackageVersion Include =" YamlDotNet" Version =" 16.3.0" />
You can’t perform that action at this time.
0 commit comments