diff --git a/src/.idea/.idea.TrashUpdater/.idea/.gitignore b/src/.idea/.idea.TrashUpdater/.idea/.gitignore deleted file mode 100644 index b58e4759..00000000 --- a/src/.idea/.idea.TrashUpdater/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Rider ignored files -/modules.xml -/projectSettingsUpdater.xml -/.idea.TrashUpdater.iml -/contentModel.xml diff --git a/src/.idea/.idea.TrashUpdater/.idea/.name b/src/.idea/.idea.TrashUpdater/.idea/.name deleted file mode 100644 index 953afe3d..00000000 --- a/src/.idea/.idea.TrashUpdater/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -TrashUpdater \ No newline at end of file diff --git a/src/.idea/.idea.TrashUpdater/.idea/encodings.xml b/src/.idea/.idea.TrashUpdater/.idea/encodings.xml deleted file mode 100644 index c2bae49d..00000000 --- a/src/.idea/.idea.TrashUpdater/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/.idea/.idea.TrashUpdater/.idea/indexLayout.xml b/src/.idea/.idea.TrashUpdater/.idea/indexLayout.xml deleted file mode 100644 index 7b08163c..00000000 --- a/src/.idea/.idea.TrashUpdater/.idea/indexLayout.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/.idea/.idea.TrashUpdater/.idea/vcs.xml b/src/.idea/.idea.TrashUpdater/.idea/vcs.xml deleted file mode 100644 index 6c0b8635..00000000 --- a/src/.idea/.idea.TrashUpdater/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/Trash.Tests/Command/CreateConfigCommandTest.cs b/src/Recyclarr.Tests/Command/CreateConfigCommandTest.cs similarity index 95% rename from src/Trash.Tests/Command/CreateConfigCommandTest.cs rename to src/Recyclarr.Tests/Command/CreateConfigCommandTest.cs index 3b616e3b..d0b864a7 100644 --- a/src/Trash.Tests/Command/CreateConfigCommandTest.cs +++ b/src/Recyclarr.Tests/Command/CreateConfigCommandTest.cs @@ -3,11 +3,11 @@ using CliFx.Infrastructure; using NSubstitute; using NUnit.Framework; using Serilog; -using Trash.Command; +using Recyclarr.Command; // ReSharper disable MethodHasAsyncOverload -namespace Trash.Tests.Command; +namespace Recyclarr.Tests.Command; [TestFixture] [Parallelizable(ParallelScope.All)] diff --git a/src/Trash.Tests/Command/Helpers/CliTypeActivatorTest.cs b/src/Recyclarr.Tests/Command/Helpers/CliTypeActivatorTest.cs similarity index 95% rename from src/Trash.Tests/Command/Helpers/CliTypeActivatorTest.cs rename to src/Recyclarr.Tests/Command/Helpers/CliTypeActivatorTest.cs index 92dadebe..46f21c6b 100644 --- a/src/Trash.Tests/Command/Helpers/CliTypeActivatorTest.cs +++ b/src/Recyclarr.Tests/Command/Helpers/CliTypeActivatorTest.cs @@ -2,10 +2,10 @@ using Autofac; using FluentAssertions; using NUnit.Framework; -using Trash.Command; -using Trash.Command.Helpers; +using Recyclarr.Command; +using Recyclarr.Command.Helpers; -namespace Trash.Tests.Command.Helpers; +namespace Recyclarr.Tests.Command.Helpers; [TestFixture] [Parallelizable(ParallelScope.All)] diff --git a/src/Trash.Tests/Command/SonarrCommandTest.cs b/src/Recyclarr.Tests/Command/SonarrCommandTest.cs similarity index 96% rename from src/Trash.Tests/Command/SonarrCommandTest.cs rename to src/Recyclarr.Tests/Command/SonarrCommandTest.cs index 6edf6ed6..755ab1b7 100644 --- a/src/Trash.Tests/Command/SonarrCommandTest.cs +++ b/src/Recyclarr.Tests/Command/SonarrCommandTest.cs @@ -5,10 +5,10 @@ using FluentAssertions; using NSubstitute; using NUnit.Framework; using TestLibrary.AutoFixture; -using Trash.Command; +using Recyclarr.Command; using TrashLib.Sonarr; -namespace Trash.Tests.Command; +namespace Recyclarr.Tests.Command; [TestFixture] [Parallelizable(ParallelScope.All)] diff --git a/src/Trash.Tests/CompositionRootTest.cs b/src/Recyclarr.Tests/CompositionRootTest.cs similarity index 98% rename from src/Trash.Tests/CompositionRootTest.cs rename to src/Recyclarr.Tests/CompositionRootTest.cs index f60efafa..4fbb8c39 100644 --- a/src/Trash.Tests/CompositionRootTest.cs +++ b/src/Recyclarr.Tests/CompositionRootTest.cs @@ -6,7 +6,7 @@ using FluentAssertions; using NUnit.Framework; using VersionControl; -namespace Trash.Tests; +namespace Recyclarr.Tests; public record ServiceFactoryWrapper(Type Service, Action Instantiate); diff --git a/src/Trash.Tests/Config/Services/ConfigurationLoaderTest.cs b/src/Recyclarr.Tests/Config/Services/ConfigurationLoaderTest.cs similarity index 98% rename from src/Trash.Tests/Config/Services/ConfigurationLoaderTest.cs rename to src/Recyclarr.Tests/Config/Services/ConfigurationLoaderTest.cs index 339ea07d..3e58657a 100644 --- a/src/Trash.Tests/Config/Services/ConfigurationLoaderTest.cs +++ b/src/Recyclarr.Tests/Config/Services/ConfigurationLoaderTest.cs @@ -14,14 +14,14 @@ using NUnit.Framework; using TestLibrary; using TestLibrary.AutoFixture; using TestLibrary.NSubstitute; -using Trash.Config; +using Recyclarr.Config; using TrashLib.Config; using TrashLib.Config.Services; using TrashLib.Sonarr.Config; using YamlDotNet.Serialization; using YamlDotNet.Serialization.ObjectFactories; -namespace Trash.Tests.Config.Services; +namespace Recyclarr.Tests.Config.Services; [TestFixture] [Parallelizable(ParallelScope.All)] diff --git a/src/Trash.Tests/Config/Services/Data/Load_UsingStream_CorrectParsing.yml b/src/Recyclarr.Tests/Config/Services/Data/Load_UsingStream_CorrectParsing.yml similarity index 100% rename from src/Trash.Tests/Config/Services/Data/Load_UsingStream_CorrectParsing.yml rename to src/Recyclarr.Tests/Config/Services/Data/Load_UsingStream_CorrectParsing.yml diff --git a/src/Trash.Tests/LogJanitorTest.cs b/src/Recyclarr.Tests/LogJanitorTest.cs similarity index 97% rename from src/Trash.Tests/LogJanitorTest.cs rename to src/Recyclarr.Tests/LogJanitorTest.cs index f0f4d335..9c2fd5e8 100644 --- a/src/Trash.Tests/LogJanitorTest.cs +++ b/src/Recyclarr.Tests/LogJanitorTest.cs @@ -2,7 +2,7 @@ using System.IO.Abstractions; using NSubstitute; using NUnit.Framework; -namespace Trash.Tests; +namespace Recyclarr.Tests; [TestFixture] [Parallelizable(ParallelScope.All)] diff --git a/src/Trash.Tests/Trash.Tests.csproj b/src/Recyclarr.Tests/Recyclarr.Tests.csproj similarity index 76% rename from src/Trash.Tests/Trash.Tests.csproj rename to src/Recyclarr.Tests/Recyclarr.Tests.csproj index 15dfca36..f81bd4a7 100644 --- a/src/Trash.Tests/Trash.Tests.csproj +++ b/src/Recyclarr.Tests/Recyclarr.Tests.csproj @@ -5,6 +5,6 @@ - + diff --git a/src/TrashUpdater.sln b/src/Recyclarr.sln similarity index 95% rename from src/TrashUpdater.sln rename to src/Recyclarr.sln index 72a2ce78..277822e6 100644 --- a/src/TrashUpdater.sln +++ b/src/Recyclarr.sln @@ -1,8 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trash", "Trash\Trash.csproj", "{CD5C6F99-C587-4B7C-86AE-550FA4A5594A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Recyclarr", "Recyclarr\Recyclarr.csproj", "{CD5C6F99-C587-4B7C-86AE-550FA4A5594A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trash.Tests", "Trash.Tests\Trash.Tests.csproj", "{217D5972-4BB7-4343-9043-C30BD9A1811E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Recyclarr.Tests", "Recyclarr.Tests\Recyclarr.Tests.csproj", "{217D5972-4BB7-4343-9043-C30BD9A1811E}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestLibrary", "TestLibrary\TestLibrary.csproj", "{49F28A82-468F-4C48-9A59-D41B8FE26D6E}" EndProject diff --git a/src/TrashUpdater.sln.DotSettings b/src/Recyclarr.sln.DotSettings similarity index 100% rename from src/TrashUpdater.sln.DotSettings rename to src/Recyclarr.sln.DotSettings diff --git a/src/Trash/AppPaths.cs b/src/Recyclarr/AppPaths.cs similarity index 95% rename from src/Trash/AppPaths.cs rename to src/Recyclarr/AppPaths.cs index 9efd051f..691a22af 100644 --- a/src/Trash/AppPaths.cs +++ b/src/Recyclarr/AppPaths.cs @@ -1,4 +1,4 @@ -namespace Trash; +namespace Recyclarr; internal static class AppPaths { diff --git a/src/Trash/Command/CreateConfigCommand.cs b/src/Recyclarr/Command/CreateConfigCommand.cs similarity index 98% rename from src/Trash/Command/CreateConfigCommand.cs rename to src/Recyclarr/Command/CreateConfigCommand.cs index 2af9fd1c..154b1db9 100644 --- a/src/Trash/Command/CreateConfigCommand.cs +++ b/src/Recyclarr/Command/CreateConfigCommand.cs @@ -7,7 +7,7 @@ using Common; using JetBrains.Annotations; using Serilog; -namespace Trash.Command; +namespace Recyclarr.Command; [Command("create-config", Description = "Create a starter YAML configuration file")] [UsedImplicitly] diff --git a/src/Trash/Command/Helpers/ActiveServiceCommandProvider.cs b/src/Recyclarr/Command/Helpers/ActiveServiceCommandProvider.cs similarity index 89% rename from src/Trash/Command/Helpers/ActiveServiceCommandProvider.cs rename to src/Recyclarr/Command/Helpers/ActiveServiceCommandProvider.cs index 1096f84a..9147db80 100644 --- a/src/Trash/Command/Helpers/ActiveServiceCommandProvider.cs +++ b/src/Recyclarr/Command/Helpers/ActiveServiceCommandProvider.cs @@ -1,4 +1,4 @@ -namespace Trash.Command.Helpers; +namespace Recyclarr.Command.Helpers; public class ActiveServiceCommandProvider : IActiveServiceCommandProvider { diff --git a/src/Trash/Command/Helpers/CacheStoragePath.cs b/src/Recyclarr/Command/Helpers/CacheStoragePath.cs similarity index 91% rename from src/Trash/Command/Helpers/CacheStoragePath.cs rename to src/Recyclarr/Command/Helpers/CacheStoragePath.cs index d5e9705f..93ce61b4 100644 --- a/src/Trash/Command/Helpers/CacheStoragePath.cs +++ b/src/Recyclarr/Command/Helpers/CacheStoragePath.cs @@ -1,6 +1,6 @@ using TrashLib.Cache; -namespace Trash.Command.Helpers; +namespace Recyclarr.Command.Helpers; public class CacheStoragePath : ICacheStoragePath { diff --git a/src/Trash/Command/Helpers/CliTypeActivator.cs b/src/Recyclarr/Command/Helpers/CliTypeActivator.cs similarity index 93% rename from src/Trash/Command/Helpers/CliTypeActivator.cs rename to src/Recyclarr/Command/Helpers/CliTypeActivator.cs index 1e3e1190..9b0c8ff7 100644 --- a/src/Trash/Command/Helpers/CliTypeActivator.cs +++ b/src/Recyclarr/Command/Helpers/CliTypeActivator.cs @@ -1,6 +1,6 @@ using Autofac; -namespace Trash.Command.Helpers; +namespace Recyclarr.Command.Helpers; internal static class CliTypeActivator { diff --git a/src/Trash/Command/Helpers/ExitCode.cs b/src/Recyclarr/Command/Helpers/ExitCode.cs similarity index 59% rename from src/Trash/Command/Helpers/ExitCode.cs rename to src/Recyclarr/Command/Helpers/ExitCode.cs index 3d29e44f..d47114dd 100644 --- a/src/Trash/Command/Helpers/ExitCode.cs +++ b/src/Recyclarr/Command/Helpers/ExitCode.cs @@ -1,4 +1,4 @@ -namespace Trash.Command.Helpers; +namespace Recyclarr.Command.Helpers; public enum ExitCode { diff --git a/src/Trash/Command/Helpers/IActiveServiceCommandProvider.cs b/src/Recyclarr/Command/Helpers/IActiveServiceCommandProvider.cs similarity index 71% rename from src/Trash/Command/Helpers/IActiveServiceCommandProvider.cs rename to src/Recyclarr/Command/Helpers/IActiveServiceCommandProvider.cs index 7aa79fea..aec0b9fb 100644 --- a/src/Trash/Command/Helpers/IActiveServiceCommandProvider.cs +++ b/src/Recyclarr/Command/Helpers/IActiveServiceCommandProvider.cs @@ -1,4 +1,4 @@ -namespace Trash.Command.Helpers; +namespace Recyclarr.Command.Helpers; public interface IActiveServiceCommandProvider { diff --git a/src/Trash/Command/IServiceCommand.cs b/src/Recyclarr/Command/IServiceCommand.cs similarity index 83% rename from src/Trash/Command/IServiceCommand.cs rename to src/Recyclarr/Command/IServiceCommand.cs index 584be623..42aff555 100644 --- a/src/Trash/Command/IServiceCommand.cs +++ b/src/Recyclarr/Command/IServiceCommand.cs @@ -1,4 +1,4 @@ -namespace Trash.Command; +namespace Recyclarr.Command; public interface IServiceCommand { diff --git a/src/Trash/Command/RadarrCommand.cs b/src/Recyclarr/Command/RadarrCommand.cs similarity index 97% rename from src/Trash/Command/RadarrCommand.cs rename to src/Recyclarr/Command/RadarrCommand.cs index c2fdf781..aad0ca2b 100644 --- a/src/Trash/Command/RadarrCommand.cs +++ b/src/Recyclarr/Command/RadarrCommand.cs @@ -1,9 +1,9 @@ using CliFx.Attributes; using Flurl.Http; using JetBrains.Annotations; +using Recyclarr.Config; using Serilog; using Serilog.Core; -using Trash.Config; using TrashLib.Config.Settings; using TrashLib.Extensions; using TrashLib.Radarr.Config; @@ -11,7 +11,7 @@ using TrashLib.Radarr.CustomFormat; using TrashLib.Radarr.QualityDefinition; using TrashLib.Repo; -namespace Trash.Command; +namespace Recyclarr.Command; [Command("radarr", Description = "Perform operations on a Radarr instance")] [UsedImplicitly] diff --git a/src/Trash/Command/ServiceCommand.cs b/src/Recyclarr/Command/ServiceCommand.cs similarity index 99% rename from src/Trash/Command/ServiceCommand.cs rename to src/Recyclarr/Command/ServiceCommand.cs index 246daee0..b16fb8f1 100644 --- a/src/Trash/Command/ServiceCommand.cs +++ b/src/Recyclarr/Command/ServiceCommand.cs @@ -15,7 +15,7 @@ using TrashLib.Extensions; using TrashLib.Repo; using YamlDotNet.Core; -namespace Trash.Command; +namespace Recyclarr.Command; public abstract class ServiceCommand : ICommand, IServiceCommand { diff --git a/src/Trash/Command/SonarrCommand.cs b/src/Recyclarr/Command/SonarrCommand.cs similarity index 98% rename from src/Trash/Command/SonarrCommand.cs rename to src/Recyclarr/Command/SonarrCommand.cs index 5a372ba5..9a2d0c1d 100644 --- a/src/Trash/Command/SonarrCommand.cs +++ b/src/Recyclarr/Command/SonarrCommand.cs @@ -2,9 +2,9 @@ using CliFx.Exceptions; using Flurl.Http; using JetBrains.Annotations; +using Recyclarr.Config; using Serilog; using Serilog.Core; -using Trash.Config; using TrashLib.Config.Settings; using TrashLib.Repo; using TrashLib.Sonarr; @@ -12,7 +12,7 @@ using TrashLib.Sonarr.Config; using TrashLib.Sonarr.QualityDefinition; using TrashLib.Sonarr.ReleaseProfile; -namespace Trash.Command; +namespace Recyclarr.Command; [Command("sonarr", Description = "Perform operations on a Sonarr instance")] [UsedImplicitly] diff --git a/src/Trash/CompositionRoot.cs b/src/Recyclarr/CompositionRoot.cs similarity index 97% rename from src/Trash/CompositionRoot.cs rename to src/Recyclarr/CompositionRoot.cs index 39f395f3..ca50099a 100644 --- a/src/Trash/CompositionRoot.cs +++ b/src/Recyclarr/CompositionRoot.cs @@ -5,10 +5,10 @@ using Autofac.Core.Activators.Reflection; using CliFx; using CliFx.Infrastructure; using Common; +using Recyclarr.Command.Helpers; +using Recyclarr.Config; using Serilog; using Serilog.Core; -using Trash.Command.Helpers; -using Trash.Config; using TrashLib.Cache; using TrashLib.Config; using TrashLib.Radarr; @@ -19,7 +19,7 @@ using TrashLib.Startup; using VersionControl; using YamlDotNet.Serialization; -namespace Trash; +namespace Recyclarr; public static class CompositionRoot { diff --git a/src/Trash/Config/ConfigurationException.cs b/src/Recyclarr/Config/ConfigurationException.cs similarity index 98% rename from src/Trash/Config/ConfigurationException.cs rename to src/Recyclarr/Config/ConfigurationException.cs index fdb94136..e6428250 100644 --- a/src/Trash/Config/ConfigurationException.cs +++ b/src/Recyclarr/Config/ConfigurationException.cs @@ -2,7 +2,7 @@ using System.Runtime.Serialization; using System.Text; using FluentValidation.Results; -namespace Trash.Config; +namespace Recyclarr.Config; [Serializable] public class ConfigurationException : Exception diff --git a/src/Trash/Config/ConfigurationLoader.cs b/src/Recyclarr/Config/ConfigurationLoader.cs similarity index 99% rename from src/Trash/Config/ConfigurationLoader.cs rename to src/Recyclarr/Config/ConfigurationLoader.cs index ef209a40..c7e6162c 100644 --- a/src/Trash/Config/ConfigurationLoader.cs +++ b/src/Recyclarr/Config/ConfigurationLoader.cs @@ -6,7 +6,7 @@ using YamlDotNet.Core; using YamlDotNet.Core.Events; using YamlDotNet.Serialization; -namespace Trash.Config; +namespace Recyclarr.Config; public class ConfigurationLoader : IConfigurationLoader where T : IServiceConfiguration diff --git a/src/Trash/Config/IConfigurationLoader.cs b/src/Recyclarr/Config/IConfigurationLoader.cs similarity index 92% rename from src/Trash/Config/IConfigurationLoader.cs rename to src/Recyclarr/Config/IConfigurationLoader.cs index 157e59eb..3251fcb7 100644 --- a/src/Trash/Config/IConfigurationLoader.cs +++ b/src/Recyclarr/Config/IConfigurationLoader.cs @@ -1,6 +1,6 @@ using TrashLib.Config.Services; -namespace Trash.Config; +namespace Recyclarr.Config; public interface IConfigurationLoader where T : IServiceConfiguration diff --git a/src/Trash/Config/ObjectFactory.cs b/src/Recyclarr/Config/ObjectFactory.cs similarity index 94% rename from src/Trash/Config/ObjectFactory.cs rename to src/Recyclarr/Config/ObjectFactory.cs index e63885c7..27c553a1 100644 --- a/src/Trash/Config/ObjectFactory.cs +++ b/src/Recyclarr/Config/ObjectFactory.cs @@ -2,7 +2,7 @@ using YamlDotNet.Serialization; using YamlDotNet.Serialization.ObjectFactories; -namespace Trash.Config; +namespace Recyclarr.Config; public class ObjectFactory : IObjectFactory { diff --git a/src/Trash/ILogJanitor.cs b/src/Recyclarr/ILogJanitor.cs similarity index 81% rename from src/Trash/ILogJanitor.cs rename to src/Recyclarr/ILogJanitor.cs index c5c30a21..08128c6b 100644 --- a/src/Trash/ILogJanitor.cs +++ b/src/Recyclarr/ILogJanitor.cs @@ -1,4 +1,4 @@ -namespace Trash; +namespace Recyclarr; public interface ILogJanitor { diff --git a/src/Trash/LogJanitor.cs b/src/Recyclarr/LogJanitor.cs similarity index 96% rename from src/Trash/LogJanitor.cs rename to src/Recyclarr/LogJanitor.cs index 46fa7b6a..d4223721 100644 --- a/src/Trash/LogJanitor.cs +++ b/src/Recyclarr/LogJanitor.cs @@ -1,6 +1,6 @@ using System.IO.Abstractions; -namespace Trash; +namespace Recyclarr; public class LogJanitor : ILogJanitor { diff --git a/src/Trash/Program.cs b/src/Recyclarr/Program.cs similarity index 95% rename from src/Trash/Program.cs rename to src/Recyclarr/Program.cs index 2c76f04f..b95f45dc 100644 --- a/src/Trash/Program.cs +++ b/src/Recyclarr/Program.cs @@ -3,9 +3,9 @@ using System.Text; using Autofac; using CliFx; using CliFx.Infrastructure; -using Trash.Command.Helpers; +using Recyclarr.Command.Helpers; -namespace Trash; +namespace Recyclarr; internal static class Program { diff --git a/src/Trash/Trash.csproj b/src/Recyclarr/Recyclarr.csproj similarity index 93% rename from src/Trash/Trash.csproj rename to src/Recyclarr/Recyclarr.csproj index 01d8772a..7952dcc7 100644 --- a/src/Trash/Trash.csproj +++ b/src/Recyclarr/Recyclarr.csproj @@ -1,8 +1,7 @@ Exe - Trash - trash + recyclarr true diff --git a/src/Trash/ResourcePaths.cs b/src/Recyclarr/ResourcePaths.cs similarity index 90% rename from src/Trash/ResourcePaths.cs rename to src/Recyclarr/ResourcePaths.cs index 349531d0..2dd67b2b 100644 --- a/src/Trash/ResourcePaths.cs +++ b/src/Recyclarr/ResourcePaths.cs @@ -1,6 +1,6 @@ using TrashLib.Radarr.Config; -namespace Trash; +namespace Recyclarr; public class ResourcePaths : IResourcePaths { diff --git a/src/Trash/trash-config-template.yml b/src/Recyclarr/trash-config-template.yml similarity index 100% rename from src/Trash/trash-config-template.yml rename to src/Recyclarr/trash-config-template.yml