From 8f7496a3dfaaffe4c271aa9422ad3a8c412925f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Thu, 31 Aug 2023 21:18:44 +0200 Subject: [PATCH] restructured namespaces --- PiwigoDirectorySync/Commands/{Scan => }/ScanCommand.cs | 3 ++- PiwigoDirectorySync/Commands/{Scan => }/ScanSettings.cs | 2 +- PiwigoDirectorySync/PiwigoDirectorySync.csproj | 3 +++ PiwigoDirectorySync/Program.cs | 2 +- PiwigoDirectorySync/{Commands/Scan => Services}/FileIndexer.cs | 2 +- .../{Commands/Scan => Services}/FileSystemScanner.cs | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) rename PiwigoDirectorySync/Commands/{Scan => }/ScanCommand.cs (91%) rename PiwigoDirectorySync/Commands/{Scan => }/ScanSettings.cs (87%) rename PiwigoDirectorySync/{Commands/Scan => Services}/FileIndexer.cs (96%) rename PiwigoDirectorySync/{Commands/Scan => Services}/FileSystemScanner.cs (95%) diff --git a/PiwigoDirectorySync/Commands/Scan/ScanCommand.cs b/PiwigoDirectorySync/Commands/ScanCommand.cs similarity index 91% rename from PiwigoDirectorySync/Commands/Scan/ScanCommand.cs rename to PiwigoDirectorySync/Commands/ScanCommand.cs index 591938d..0da2bac 100644 --- a/PiwigoDirectorySync/Commands/Scan/ScanCommand.cs +++ b/PiwigoDirectorySync/Commands/ScanCommand.cs @@ -1,9 +1,10 @@ using System.Diagnostics; using System.Threading.Channels; using NLog; +using PiwigoDirectorySync.Services; using Spectre.Console.Cli; -namespace PiwigoDirectorySync.Commands.Scan; +namespace PiwigoDirectorySync.Commands; public class ScanCommand : AsyncCommand { diff --git a/PiwigoDirectorySync/Commands/Scan/ScanSettings.cs b/PiwigoDirectorySync/Commands/ScanSettings.cs similarity index 87% rename from PiwigoDirectorySync/Commands/Scan/ScanSettings.cs rename to PiwigoDirectorySync/Commands/ScanSettings.cs index 78e4b06..848e89c 100644 --- a/PiwigoDirectorySync/Commands/Scan/ScanSettings.cs +++ b/PiwigoDirectorySync/Commands/ScanSettings.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using Spectre.Console.Cli; -namespace PiwigoDirectorySync.Commands.Scan; +namespace PiwigoDirectorySync.Commands; [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")] public class ScanSettings : CommandSettings diff --git a/PiwigoDirectorySync/PiwigoDirectorySync.csproj b/PiwigoDirectorySync/PiwigoDirectorySync.csproj index b2c07d8..7e5585f 100644 --- a/PiwigoDirectorySync/PiwigoDirectorySync.csproj +++ b/PiwigoDirectorySync/PiwigoDirectorySync.csproj @@ -45,6 +45,9 @@ Always + + + diff --git a/PiwigoDirectorySync/Program.cs b/PiwigoDirectorySync/Program.cs index 9603beb..58c5ecc 100644 --- a/PiwigoDirectorySync/Program.cs +++ b/PiwigoDirectorySync/Program.cs @@ -1,7 +1,7 @@ using NLog; using NLog.Extensions.Logging; using PiwigoDirectorySync; -using PiwigoDirectorySync.Commands.Scan; +using PiwigoDirectorySync.Commands; using Spectre.Console.Cli; LogManager.Configuration = new NLogLoggingConfiguration(AppSettings.Config.GetSection("NLog")); diff --git a/PiwigoDirectorySync/Commands/Scan/FileIndexer.cs b/PiwigoDirectorySync/Services/FileIndexer.cs similarity index 96% rename from PiwigoDirectorySync/Commands/Scan/FileIndexer.cs rename to PiwigoDirectorySync/Services/FileIndexer.cs index a0bc32d..c80e261 100644 --- a/PiwigoDirectorySync/Commands/Scan/FileIndexer.cs +++ b/PiwigoDirectorySync/Services/FileIndexer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using NLog; using PiwigoDirectorySync.Persistence; -namespace PiwigoDirectorySync.Commands.Scan; +namespace PiwigoDirectorySync.Services; public class FileIndexer { diff --git a/PiwigoDirectorySync/Commands/Scan/FileSystemScanner.cs b/PiwigoDirectorySync/Services/FileSystemScanner.cs similarity index 95% rename from PiwigoDirectorySync/Commands/Scan/FileSystemScanner.cs rename to PiwigoDirectorySync/Services/FileSystemScanner.cs index 9e24c6f..65ac0c6 100644 --- a/PiwigoDirectorySync/Commands/Scan/FileSystemScanner.cs +++ b/PiwigoDirectorySync/Services/FileSystemScanner.cs @@ -2,7 +2,7 @@ using System.Threading.Channels; using NLog; using PiwigoDirectorySync.Persistence; -namespace PiwigoDirectorySync.Commands.Scan; +namespace PiwigoDirectorySync.Services; public class FileSystemScanner {