refactor(configmanager): split into Core, CLI, and UI projects

Extract shared models, services, and application logic into
JdeScoping.ConfigManager.Core library. Add JdeScoping.ConfigManager.Cli
console app with validate, test-connection, and secret commands using
System.CommandLine. UI project now references Core for platform-agnostic
functionality while retaining Avalonia-specific dialog and clipboard services.
This commit is contained in:
Joseph Doherty
2026-01-28 10:01:48 -05:00
parent 5ee710d330
commit 7c4781dfe3
91 changed files with 1314 additions and 251 deletions
@@ -0,0 +1,18 @@
using JdeScoping.ConfigManager.Core.Models;
namespace JdeScoping.ConfigManager.Core.Services;
/// <summary>
/// Service for testing database connections.
/// </summary>
public interface IConnectionTestService
{
/// <summary>
/// Tests a database connection asynchronously.
/// </summary>
/// <param name="connectionString">The connection string to test.</param>
/// <param name="provider">The database provider type.</param>
/// <param name="cancellationToken">Cancellation token for the operation.</param>
/// <returns>A ConnectionTestResult indicating success or failure of the test.</returns>
Task<ConnectionTestResult> TestConnectionAsync(string connectionString, ConnectionProvider provider, CancellationToken cancellationToken = default);
}