Skip to content

Commit d80f7fa

Browse files
committed
VersionBump: Update project dependencies and improve CLI parsing logic
1 parent 69f7607 commit d80f7fa

File tree

12 files changed

+32
-34
lines changed

12 files changed

+32
-34
lines changed

src/CodeOfChaos.Types.DataSeeder/CodeOfChaos.Types.DataSeeder.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
</ItemGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.5" />
38-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.5" />
37+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8" />
38+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.8" />
3939
</ItemGroup>
4040

4141
</Project>

src/CodeOfChaos.Types.UnitOfWork.Contracts/CodeOfChaos.Types.UnitOfWork.Contracts.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</ItemGroup>
3131

3232
<ItemGroup>
33-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.5" />
33+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.8" />
3434
</ItemGroup>
3535

3636
</Project>

src/CodeOfChaos.Types.UnitOfWork/CodeOfChaos.Types.UnitOfWork.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.5" />
31+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.8" />
3232
</ItemGroup>
3333

3434
<ItemGroup>

src/CodeOfChaos.Types/CodeOfChaos.Types.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="CodeOfChaos.Extensions" Version="0.68.0" />
36+
<PackageReference Include="CodeOfChaos.Extensions" Version="0.79.1" />
3737
</ItemGroup>
3838

3939
<ItemGroup>

src/Tools.CodeOfChaos.Types/Program.cs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ public static class Program {
1212
public static async Task Main(string[] args) {
1313
// Register & Build the parser
1414
// Don't forget to add the current assembly if you built more tools for the current project
15-
CliArgsParser parser = CliArgsBuilder.CreateFromConfig(
16-
config => {
17-
config.AddCommandsFromAssemblyEntrypoint<IAssemblyEntry>();
18-
}
19-
).Build();
15+
ICliParser parser = CliParser.CreateBuilder()
16+
.AddFromAssembly<IAssemblyEntry>()
17+
.Build();
2018

2119
// We are doing this here because else the launchSettings.json file becomes a humongous issue to deal with.
22-
// Sometimes CLI params is not the answer.
23-
// Code is the true saviour
20+
// Sometimes CLI params are not the answer.
21+
// Code is the true savior
2422
string projects = string.Join(";",
2523
"CodeOfChaos.Types",
2624
"CodeOfChaos.Types.TypedValueStore",
@@ -29,9 +27,9 @@ public static async Task Main(string[] args) {
2927
"CodeOfChaos.Types.UnitOfWork.Contracts"
3028
);
3129

32-
string oneLineArgs = InputHelper.ToOneLine(args).Replace("%PROJECTS%", projects);
33-
34-
// Finally start executing
35-
await parser.ParseAsync(oneLineArgs);
30+
// Finally, start executing
31+
string oneLineArgs = ArgsInputHelper.ToOneLine(args).Replace("%PROJECTS%", projects);
32+
await parser.ExecuteAsync(oneLineArgs);
3633
}
3734
}
35+

src/Tools.CodeOfChaos.Types/Properties/launchSettings.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
"Version Bump : Major": {
44
"_readme": "will update the 'patch' section of the semantic version (x.0.0)",
55
"commandName": "Project",
6-
"commandLineArgs": "git-version-bump --section=\"major\" --projects=\"%PROJECTS%\" --push"
6+
"commandLineArgs": "git-version-bump --section=\"major\" --projects=\"%PROJECTS%\" --push --root=\"..\\..\\\""
77
},
88
"Version Bump : Minor": {
99
"_readme": "will update the 'patch' section of the semantic version (0.x.0)",
1010
"commandName": "Project",
11-
"commandLineArgs": "git-version-bump --section=\"minor\" --projects=\"%PROJECTS%\" --push"
11+
"commandLineArgs": "git-version-bump --section=\"minor\" --projects=\"%PROJECTS%\" --push --root=\"..\\..\\\""
1212
},
1313
"Version Bump : Patch": {
1414
"_readme": "will update the 'patch' section of the semantic version (0.0.x)",
1515
"commandName": "Project",
16-
"commandLineArgs": "git-version-bump --section=\"patch\" --projects=\"%PROJECTS%\" --push"
16+
"commandLineArgs": "git-version-bump --section=\"patch\" --projects=\"%PROJECTS%\" --push --root=\"..\\..\\\""
1717
},
1818
"Version Bump : Preview": {
1919
"_readme": "will update the 'preview' section of the semantic version (0.0.0-preview.x)",
2020
"commandName": "Project",
21-
"commandLineArgs": "git-version-bump --section=\"preview\" --projects=\"%PROJECTS%\" --push"
21+
"commandLineArgs": "git-version-bump --section=\"preview\" --projects=\"%PROJECTS%\" --push --root=\"..\\..\\\""
2222
},
2323
"Version Bump : Manual": {
2424
"_readme": "useful for setting a preview for an upcoming version. Will ask for a prompt of the new version string",
2525
"commandName": "Project",
26-
"commandLineArgs": "git-version-bump --section=\"manual\" --projects=\"%PROJECTS%\" --push"
26+
"commandLineArgs": "git-version-bump --section=\"manual\" --projects=\"%PROJECTS%\" --push --root=\"..\\..\\\""
2727
},
2828
"Download Icon": {
2929
"_readme": "downloads a png to a specific location to then be used by nuget packages as a built in icon",

src/Tools.CodeOfChaos.Types/Tools.CodeOfChaos.Types.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="CodeOfChaos.CliArgsParser.Library" Version="4.10.0" />
12+
<PackageReference Include="CodeOfChaos.CliArgsParser.Library" Version="5.0.0" />
1313
</ItemGroup>
1414

1515
</Project>

tests/Benchmarks.CodeOfChaos.Types.TypedValueStore/Benchmarks.CodeOfChaos.Types.TypedValueStore.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="BenchmarkDotNet" Version="0.15.1" />
12-
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.5" />
11+
<PackageReference Include="BenchmarkDotNet" Version="0.15.2" />
12+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.8" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

tests/Tests.CodeOfChaos.Types.DataSeeder/Tests.CodeOfChaos.Types.DataSeeder.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0"/>
15-
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.5" />
14+
<PackageReference Include="JetBrains.Annotations" Version="2025.2.0" />
15+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.8" />
1616
<PackageReference Include="Moq" Version="4.20.72"/>
17-
<PackageReference Include="TUnit" Version="0.25.21" />
17+
<PackageReference Include="TUnit" Version="0.57.1" />
1818
<PackageReference Include="Bogus" Version="35.6.3" />
1919
</ItemGroup>
2020

tests/Tests.CodeOfChaos.Types.TypedValueStore/Tests.CodeOfChaos.Types.TypedValueStore.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0"/>
15+
<PackageReference Include="JetBrains.Annotations" Version="2025.2.0" />
1616
<PackageReference Include="Moq" Version="4.20.72"/>
17-
<PackageReference Include="TUnit" Version="0.25.21" />
17+
<PackageReference Include="TUnit" Version="0.57.1" />
1818
<PackageReference Include="Bogus" Version="35.6.3" />
1919
</ItemGroup>
2020

0 commit comments

Comments
 (0)