Skip to content

Commit ddf05e5

Browse files
authored
Revert "update System.CommandLine (dotnet#199)"
This reverts commit 686de42.
1 parent 1247dc8 commit ddf05e5

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<ProductDependencies>
44
</ProductDependencies>
55
<ToolsetDependencies>
6-
<Dependency Name="System.CommandLine" Version="2.0.0-beta4.25072.1">
6+
<Dependency Name="System.CommandLine" Version="2.0.0-beta4.23307.1">
77
<Uri>https://github.com/dotnet/command-line-api</Uri>
8-
<Sha>060374e56c1b2e741b6525ca8417006efb54fbd7</Sha>
8+
<Sha>02fe27cd6a9b001c8feb7938e6ef4b3799745759</Sha>
99
</Dependency>
1010
<!-- Intermediate is necessary for source build. -->
11-
<Dependency Name="Microsoft.SourceBuild.Intermediate.command-line-api" Version="0.1.607201">
11+
<Dependency Name="Microsoft.SourceBuild.Intermediate.command-line-api" Version="0.1.430701">
1212
<Uri>https://github.com/dotnet/command-line-api</Uri>
13-
<Sha>060374e56c1b2e741b6525ca8417006efb54fbd7</Sha>
13+
<Sha>02fe27cd6a9b001c8feb7938e6ef4b3799745759</Sha>
1414
<SourceBuild RepoName="command-line-api" ManagedOnly="true" />
1515
</Dependency>
1616
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25105.3">

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
55
</PropertyGroup>
66
<PropertyGroup>
7-
<SystemCommandLineVersion>2.0.0-beta4.25072.1</SystemCommandLineVersion>
7+
<SystemCommandLineVersion>2.0.0-beta4.23307.1</SystemCommandLineVersion>
88
</PropertyGroup>
99
</Project>

src/Microsoft.DotNet.ScenarioTests.Common/Program.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,39 @@ private SingleFileTestRunner(IMessageSink messageSink)
2020

2121
public static async Task<int> Main(string[] args)
2222
{
23-
var rootCommand = new RootCommand("Scenario test runner");
23+
var rootCommand = new CliRootCommand("Scenario test runner");
2424

25-
Option<bool> listTestsOption = new("--list")
25+
CliOption<bool> listTestsOption = new("--list")
2626
{
2727
Description = "List tests that would be run, without running them."
2828
};
29-
Option<List<string>> noTraitsOption = new("--no-traits")
29+
CliOption<List<string>> noTraitsOption = new("--no-traits")
3030
{
3131
Description = "Do not run tests with the following traits. Format X=Y"
3232
};
33-
Option<List<string>> traitsOption = new("--traits")
33+
CliOption<List<string>> traitsOption = new("--traits")
3434
{
3535
Description = "Only run tests with the following traits. Format X=Y"
3636
};
37-
Option<bool> offlineOnlyOption = new("--offline-only")
37+
CliOption<bool> offlineOnlyOption = new("--offline-only")
3838
{
3939
Description = "Only run tests that can be run in offline mode. Implies --notraits 'resources=online'"
4040
};
41-
Option<string> xmlResultsPathOption = new("--xml")
41+
CliOption<string> xmlResultsPathOption = new("--xml")
4242
{
4343
Description = "XML result file."
4444
};
45-
Option<string> testRootOption = new("--test-root")
45+
CliOption<string> testRootOption = new("--test-root")
4646
{
4747
DefaultValueFactory = (_) => Directory.CreateTempSubdirectory().FullName,
4848
Description = "Directory used for temporary files when running tests"
4949
};
50-
Option<bool> noCleanTestRoot = new("--no-cleanup")
50+
CliOption<bool> noCleanTestRoot = new("--no-cleanup")
5151
{
5252
Description = "Do not cleanup the test root after execution."
5353
};
5454

55-
Option<string> dotnetRootOption = new("--dotnet-root")
55+
CliOption<string> dotnetRootOption = new("--dotnet-root")
5656
{
5757
Description = "dotnet root to run tests against.",
5858
Required = true
@@ -66,23 +66,23 @@ public static async Task<int> Main(string[] args)
6666
}
6767
});
6868

69-
Option<string> sdkVersionOption = new("--sdk-version")
69+
CliOption<string> sdkVersionOption = new("--sdk-version")
7070
{
7171
Description = "Version of SDK to use to run tests against. Optional. Otherwise uses the default SDK at the dotnet root."
7272
};
7373

74-
Option<string> targetRidOption = new("--target-rid")
74+
CliOption<string> targetRidOption = new("--target-rid")
7575
{
7676
Description = "Target rid for tests requiring one (e.g. self-contained publish). If omitted, uses the target rid of the executing application",
7777
DefaultValueFactory = (_) => RuntimeInformation.RuntimeIdentifier
7878
};
7979

80-
Option<string> portableRidOption = new("--portable-rid")
80+
CliOption<string> portableRidOption = new("--portable-rid")
8181
{
8282
Description = "Portable rid for tests requiring one (e.g. self-contained publish)."
8383
};
8484

85-
Option<string> binlogDirOption = new("--binlog-dir")
85+
CliOption<string> binlogDirOption = new("--binlog-dir")
8686
{
8787
Description = "Directory to store binlogs in. If omitted, binlogs are stored in the generated projecgt directory."
8888
};

0 commit comments

Comments
 (0)