Skip to content

Commit 1e930f5

Browse files
StevenTCramerclaude
andcommitted
feat: integrate TimeWarp.Nuru.DevCli shared endpoints
Replace custom clean, check-version, and self-install endpoint implementations with shared endpoints from TimeWarp.Nuru.DevCli. - Delete local endpoints/clean.cs, check-version.cs, self-install.cs - Register services required by shared endpoints in dev.cs (IRepoCleanService, NuGetVersionService, GitTagCheckService, IRepoConfigService) and add .DiscoverEndpoints() - Add DevCli and static TimeWarp.Nuru.Unit global usings so the shared content files resolve correctly - Suppress CA5399/IL2104/IL3053/IDE0065 from package content Closes kanban task 021. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9b16bb7 commit 1e930f5

5 files changed

Lines changed: 12 additions & 232 deletions

File tree

tools/dev-cli/Directory.Build.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<PropertyGroup>
66
<!-- Suppress warnings that don't apply to CLI tools -->
77
<!-- CA1031: Catch general exception types - OK for CLI error handling -->
8+
<!-- CA1034: Nested types - used by Nuru command pattern -->
89
<!-- CA1303: Literal strings - OK for CLI output -->
910
<!-- CA1508: Dead code analysis false positive -->
1011
<!-- CA1515: Internal types in exe projects are fine -->
@@ -13,7 +14,7 @@
1314
<!-- CA2016: CancellationToken forwarding - will address where needed -->
1415
<!-- CA2000: Dispose on app builder - handled by framework -->
1516
<!-- RCS1046: Async suffix - private methods don't need it -->
16-
<NoWarn>$(NoWarn);CA1031;CA1303;CA1508;CA1515;CA1849;CA2007;CA2016;CA2000;RCS1046</NoWarn>
17+
<NoWarn>$(NoWarn);CA1031;CA1034;CA1303;CA1508;CA1515;CA1849;CA2007;CA2016;CA2000;RCS1046;CA5399;IL2104;IL3053;IDE0065</NoWarn>
1718

1819
<!-- AOT Support -->
1920
<PublishAot>true</PublishAot>
@@ -37,8 +38,10 @@
3738
<Using Include="System.Xml.Linq" />
3839

3940
<Using Include="TimeWarp.Nuru" />
41+
<Using Include="TimeWarp.Nuru.Unit" Static="true" />
4042
<Using Include="TimeWarp.Amuru" />
4143
<Using Include="TimeWarp.Terminal" />
44+
<Using Include="DevCli" />
4245
<Using Include="Microsoft.Extensions.DependencyInjection" />
4346

4447
<Using Include="System.Console" Static="true" />
@@ -58,6 +61,7 @@
5861
<!-- Package references -->
5962
<PackageReference Include="TimeWarp.Amuru" />
6063
<PackageReference Include="TimeWarp.Nuru" />
64+
<PackageReference Include="TimeWarp.Nuru.DevCli" />
6165
</ItemGroup>
6266

6367
</Project>

tools/dev-cli/dev.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@
3939
// dev --help
4040
// ═══════════════════════════════════════════════════════════════════════════════
4141

42-
using TimeWarp.Nuru;
43-
4442
NuruApp app = NuruApp.CreateBuilder()
4543
.WithDescription("Development CLI for timewarp-terminal")
44+
.ConfigureServices(services =>
45+
{
46+
services.AddSingleton<IRepoCleanService, RepoCleanService>();
47+
services.AddSingleton<NuGetVersionService>();
48+
services.AddSingleton<GitTagCheckService>();
49+
services.AddSingleton<IRepoConfigService, RepoConfigService>();
50+
})
4651
.DiscoverEndpoints()
4752
.Build();
4853

tools/dev-cli/endpoints/check-version.cs

Lines changed: 0 additions & 92 deletions
This file was deleted.

tools/dev-cli/endpoints/clean.cs

Lines changed: 0 additions & 59 deletions
This file was deleted.

tools/dev-cli/endpoints/self-install.cs

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)