Skip to content

Commit 7cb0485

Browse files
chore(deps): bump System.CommandLine from 2.0.0-beta1.21216.1 to 2.0.0-beta4.22272.1 (#57)
* chore(deps): bump System.CommandLine Bumps [System.CommandLine](https://github.com/dotnet/command-line-api) from 2.0.0-beta1.21216.1 to 2.0.0-beta4.22272.1. - [Release notes](https://github.com/dotnet/command-line-api/releases) - [Changelog](https://github.com/dotnet/command-line-api/blob/main/docs/History.md) - [Commits](dotnet/command-line-api@v2.0.0-beta1.21216.1...2.0.0-beta4.22272.1) --- updated-dependencies: - dependency-name: System.CommandLine dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * chore: Update System.CommandLine Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Philips <[email protected]>
1 parent eeb3ebb commit 7cb0485

File tree

11 files changed

+60
-43
lines changed

11 files changed

+60
-43
lines changed

src/EntityDb.MongoDb.Provisioner/Commands/CommandBase.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ protected static void AddEntityNameArgumentTo(Command command)
3939
{
4040
var entityName = entityNameResult.GetValueOrDefault<string>() ?? string.Empty;
4141

42-
return EntityNameRegex.IsMatch(entityName)
43-
? null
44-
: "The entity name must begin with an letter, and can only contain letters.";
42+
if (!EntityNameRegex.IsMatch(entityName))
43+
{
44+
entityNameResult.ErrorMessage = "The entity name must begin with an letter, and can only contain letters.";
45+
}
4546
});
4647

4748
command.AddArgument(entityNameArgument);

src/EntityDb.MongoDb.Provisioner/Commands/CreateCollections.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using MongoDB.Driver;
33
using System;
44
using System.CommandLine;
5-
using System.CommandLine.Invocation;
5+
using System.CommandLine.NamingConventionBinder;
66
using System.Threading.Tasks;
77

88
namespace EntityDb.MongoDb.Provisioner.Commands;

src/EntityDb.MongoDb.Provisioner/Commands/CreateCollectionsDirect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using EntityDb.MongoDb.Provisioner.Extensions;
22
using MongoDB.Driver;
33
using System.CommandLine;
4-
using System.CommandLine.Invocation;
4+
using System.CommandLine.NamingConventionBinder;
55
using System.Threading.Tasks;
66

77
namespace EntityDb.MongoDb.Provisioner.Commands;

src/EntityDb.MongoDb.Provisioner/Commands/CreateRole.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using EntityDb.MongoDb.Documents;
22
using EntityDb.MongoDb.Provisioner.MongoDbAtlas.Models;
33
using System.CommandLine;
4-
using System.CommandLine.Invocation;
4+
using System.CommandLine.NamingConventionBinder;
55
using System.Threading.Tasks;
66

77
namespace EntityDb.MongoDb.Provisioner.Commands;

src/EntityDb.MongoDb.Provisioner/Commands/CreateUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using EntityDb.MongoDb.Provisioner.MongoDbAtlas.Models;
22
using System.CommandLine;
3-
using System.CommandLine.Invocation;
3+
using System.CommandLine.NamingConventionBinder;
44
using System.Threading.Tasks;
55

66
namespace EntityDb.MongoDb.Provisioner.Commands;

src/EntityDb.MongoDb.Provisioner/EntityDb.MongoDb.Provisioner.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.21216.1"/>
17+
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1"/>
18+
<PackageReference Include="System.CommandLine.NamingConventionBinder" Version="2.0.0-beta4.22272.1"/>
1819
</ItemGroup>
1920

2021
<ItemGroup>

src/EntityDb.MongoDb.Provisioner/packages.lock.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
"net6.0": {
55
"System.CommandLine": {
66
"type": "Direct",
7-
"requested": "[2.0.0-beta1.21216.1, )",
8-
"resolved": "2.0.0-beta1.21216.1",
9-
"contentHash": "Nbv/tW8sbOKN5T+4SSVBMdk4ADSIpJpY4UHMsj3VkcNtOckIT4iyzagjF+W5FEh2YBRvmvVQijOTIZbUJ1+1aA==",
7+
"requested": "[2.0.0-beta4.22272.1, )",
8+
"resolved": "2.0.0-beta4.22272.1",
9+
"contentHash": "1uqED/q2H0kKoLJ4+hI2iPSBSEdTuhfCYADeJrAqERmiGQ2NNacYKRNEQ+gFbU4glgVyK8rxI+ZOe1onEtr/Pg=="
10+
},
11+
"System.CommandLine.NamingConventionBinder": {
12+
"type": "Direct",
13+
"requested": "[2.0.0-beta4.22272.1, )",
14+
"resolved": "2.0.0-beta4.22272.1",
15+
"contentHash": "ux2eUA/syF+JtlpMDc/Lsd6PBIBuwjH3AvHnestoh5uD0WKT5b+wkQxDWVCqp9qgVjMBTLNhX19ZYFtenunt9A==",
1016
"dependencies": {
11-
"Microsoft.CSharp": "4.4.1",
12-
"system.memory": "4.5.4"
17+
"System.CommandLine": "2.0.0-beta4.22272.1"
1318
}
1419
},
1520
"DnsClient": {
@@ -20,11 +25,6 @@
2025
"Microsoft.Win32.Registry": "5.0.0"
2126
}
2227
},
23-
"Microsoft.CSharp": {
24-
"type": "Transitive",
25-
"resolved": "4.4.1",
26-
"contentHash": "A5hI3gk6WpcBI0QGZY6/d5CCaYUxJgi7iENn1uYEng+Olo8RfI5ReGVkjXjeu3VR3srLvVYREATXa2M0X7FYJA=="
27-
},
2828
"Microsoft.NETCore.Platforms": {
2929
"type": "Transitive",
3030
"resolved": "5.0.0",
@@ -84,11 +84,6 @@
8484
"resolved": "4.5.1",
8585
"contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg=="
8686
},
87-
"System.Memory": {
88-
"type": "Transitive",
89-
"resolved": "4.5.4",
90-
"contentHash": "1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw=="
91-
},
9287
"System.Runtime.CompilerServices.Unsafe": {
9388
"type": "Transitive",
9489
"resolved": "5.0.0",

test/EntityDb.Common.Tests/packages.lock.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,11 +711,15 @@
711711
},
712712
"System.CommandLine": {
713713
"type": "Transitive",
714-
"resolved": "2.0.0-beta1.21216.1",
715-
"contentHash": "Nbv/tW8sbOKN5T+4SSVBMdk4ADSIpJpY4UHMsj3VkcNtOckIT4iyzagjF+W5FEh2YBRvmvVQijOTIZbUJ1+1aA==",
714+
"resolved": "2.0.0-beta4.22272.1",
715+
"contentHash": "1uqED/q2H0kKoLJ4+hI2iPSBSEdTuhfCYADeJrAqERmiGQ2NNacYKRNEQ+gFbU4glgVyK8rxI+ZOe1onEtr/Pg=="
716+
},
717+
"System.CommandLine.NamingConventionBinder": {
718+
"type": "Transitive",
719+
"resolved": "2.0.0-beta4.22272.1",
720+
"contentHash": "ux2eUA/syF+JtlpMDc/Lsd6PBIBuwjH3AvHnestoh5uD0WKT5b+wkQxDWVCqp9qgVjMBTLNhX19ZYFtenunt9A==",
716721
"dependencies": {
717-
"Microsoft.CSharp": "4.4.1",
718-
"system.memory": "4.5.4"
722+
"System.CommandLine": "2.0.0-beta4.22272.1"
719723
}
720724
},
721725
"System.ComponentModel.Composition": {
@@ -1795,7 +1799,8 @@
17951799
"type": "Project",
17961800
"dependencies": {
17971801
"EntityDb.MongoDb": "1.0.0",
1798-
"System.CommandLine": "2.0.0-beta1.21216.1"
1802+
"System.CommandLine": "2.0.0-beta4.22272.1",
1803+
"System.CommandLine.NamingConventionBinder": "2.0.0-beta4.22272.1"
17991804
}
18001805
},
18011806
"entitydb.redis": {

test/EntityDb.MongoDb.Tests/packages.lock.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,11 +711,15 @@
711711
},
712712
"System.CommandLine": {
713713
"type": "Transitive",
714-
"resolved": "2.0.0-beta1.21216.1",
715-
"contentHash": "Nbv/tW8sbOKN5T+4SSVBMdk4ADSIpJpY4UHMsj3VkcNtOckIT4iyzagjF+W5FEh2YBRvmvVQijOTIZbUJ1+1aA==",
714+
"resolved": "2.0.0-beta4.22272.1",
715+
"contentHash": "1uqED/q2H0kKoLJ4+hI2iPSBSEdTuhfCYADeJrAqERmiGQ2NNacYKRNEQ+gFbU4glgVyK8rxI+ZOe1onEtr/Pg=="
716+
},
717+
"System.CommandLine.NamingConventionBinder": {
718+
"type": "Transitive",
719+
"resolved": "2.0.0-beta4.22272.1",
720+
"contentHash": "ux2eUA/syF+JtlpMDc/Lsd6PBIBuwjH3AvHnestoh5uD0WKT5b+wkQxDWVCqp9qgVjMBTLNhX19ZYFtenunt9A==",
716721
"dependencies": {
717-
"Microsoft.CSharp": "4.4.1",
718-
"system.memory": "4.5.4"
722+
"System.CommandLine": "2.0.0-beta4.22272.1"
719723
}
720724
},
721725
"System.ComponentModel.Composition": {
@@ -1811,7 +1815,8 @@
18111815
"type": "Project",
18121816
"dependencies": {
18131817
"EntityDb.MongoDb": "1.0.0",
1814-
"System.CommandLine": "2.0.0-beta1.21216.1"
1818+
"System.CommandLine": "2.0.0-beta4.22272.1",
1819+
"System.CommandLine.NamingConventionBinder": "2.0.0-beta4.22272.1"
18151820
}
18161821
},
18171822
"entitydb.redis": {

test/EntityDb.Mvc.Tests/packages.lock.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,11 +711,15 @@
711711
},
712712
"System.CommandLine": {
713713
"type": "Transitive",
714-
"resolved": "2.0.0-beta1.21216.1",
715-
"contentHash": "Nbv/tW8sbOKN5T+4SSVBMdk4ADSIpJpY4UHMsj3VkcNtOckIT4iyzagjF+W5FEh2YBRvmvVQijOTIZbUJ1+1aA==",
714+
"resolved": "2.0.0-beta4.22272.1",
715+
"contentHash": "1uqED/q2H0kKoLJ4+hI2iPSBSEdTuhfCYADeJrAqERmiGQ2NNacYKRNEQ+gFbU4glgVyK8rxI+ZOe1onEtr/Pg=="
716+
},
717+
"System.CommandLine.NamingConventionBinder": {
718+
"type": "Transitive",
719+
"resolved": "2.0.0-beta4.22272.1",
720+
"contentHash": "ux2eUA/syF+JtlpMDc/Lsd6PBIBuwjH3AvHnestoh5uD0WKT5b+wkQxDWVCqp9qgVjMBTLNhX19ZYFtenunt9A==",
716721
"dependencies": {
717-
"Microsoft.CSharp": "4.4.1",
718-
"system.memory": "4.5.4"
722+
"System.CommandLine": "2.0.0-beta4.22272.1"
719723
}
720724
},
721725
"System.ComponentModel.Composition": {
@@ -1811,7 +1815,8 @@
18111815
"type": "Project",
18121816
"dependencies": {
18131817
"EntityDb.MongoDb": "1.0.0",
1814-
"System.CommandLine": "2.0.0-beta1.21216.1"
1818+
"System.CommandLine": "2.0.0-beta4.22272.1",
1819+
"System.CommandLine.NamingConventionBinder": "2.0.0-beta4.22272.1"
18151820
}
18161821
},
18171822
"entitydb.mvc": {

0 commit comments

Comments
 (0)