parent
d1fe264eb0
commit
77603b6c93
@ -1,5 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Common\Common.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Recyclarr.Common.TestLibrary\Recyclarr.Common.TestLibrary.csproj" />
|
||||
<ProjectReference Include="..\Recyclarr.Cli\Recyclarr.Cli.csproj" />
|
||||
<ProjectReference Include="..\Recyclarr.TestLibrary\Recyclarr.TestLibrary.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,15 +1,15 @@
|
||||
using System.IO.Abstractions;
|
||||
using CliFx.Exceptions;
|
||||
using CliFx.Infrastructure;
|
||||
using Common.TestLibrary;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using Recyclarr.Command;
|
||||
using Recyclarr.TestLibrary;
|
||||
using TestLibrary.AutoFixture;
|
||||
using TrashLib.Repo;
|
||||
using Recyclarr.Cli.Command;
|
||||
using Recyclarr.Cli.TestLibrary;
|
||||
using Recyclarr.Common.TestLibrary;
|
||||
using Recyclarr.TestLibrary.AutoFixture;
|
||||
using Recyclarr.TrashLib.Repo;
|
||||
|
||||
namespace Recyclarr.Tests.Command;
|
||||
namespace Recyclarr.Cli.Tests.Command;
|
||||
|
||||
[TestFixture]
|
||||
[Parallelizable(ParallelScope.All)]
|
@ -0,0 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Recyclarr.Cli.TestLibrary\Recyclarr.Cli.TestLibrary.csproj" />
|
||||
<ProjectReference Include="..\Recyclarr.TestLibrary\Recyclarr.TestLibrary.csproj" />
|
||||
<ProjectReference Include="..\Recyclarr.Cli\Recyclarr.Cli.csproj" />
|
||||
<ProjectReference Include="..\Recyclarr.TrashLib.TestLibrary\Recyclarr.TrashLib.TestLibrary.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,10 +1,10 @@
|
||||
using System.IO.Abstractions.TestingHelpers;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using Recyclarr.TestLibrary;
|
||||
using TrashLib.Config.Settings;
|
||||
using Recyclarr.Cli.TestLibrary;
|
||||
using Recyclarr.TrashLib.Config.Settings;
|
||||
|
||||
namespace Recyclarr.Tests;
|
||||
namespace Recyclarr.Cli.Tests;
|
||||
|
||||
[TestFixture]
|
||||
[Parallelizable(ParallelScope.All)]
|
@ -1,11 +1,11 @@
|
||||
using System.Data.HashFunction.FNV;
|
||||
using System.IO.Abstractions;
|
||||
using System.Text;
|
||||
using TrashLib.Cache;
|
||||
using TrashLib.Config.Services;
|
||||
using TrashLib.Startup;
|
||||
using Recyclarr.TrashLib.Cache;
|
||||
using Recyclarr.TrashLib.Config.Services;
|
||||
using Recyclarr.TrashLib.Startup;
|
||||
|
||||
namespace Recyclarr.Command.Helpers;
|
||||
namespace Recyclarr.Cli.Command.Helpers;
|
||||
|
||||
public class CacheStoragePath : ICacheStoragePath
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Recyclarr.Command;
|
||||
namespace Recyclarr.Cli.Command;
|
||||
|
||||
public interface IServiceCommand
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
using Autofac;
|
||||
using CliFx.Attributes;
|
||||
using JetBrains.Annotations;
|
||||
using Recyclarr.Migration;
|
||||
using TrashLib.Repo;
|
||||
using Recyclarr.Cli.Migration;
|
||||
using Recyclarr.TrashLib.Repo;
|
||||
|
||||
namespace Recyclarr.Command;
|
||||
namespace Recyclarr.Cli.Command;
|
||||
|
||||
public abstract class ServiceCommand : BaseCommand, IServiceCommand
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using Recyclarr.TrashLib.Startup;
|
||||
using Serilog;
|
||||
using TrashLib.Startup;
|
||||
|
||||
namespace Recyclarr.Command.Setup;
|
||||
namespace Recyclarr.Cli.Command.Setup;
|
||||
|
||||
public class AppPathSetupTask : IBaseCommandSetupTask
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Recyclarr.Command.Setup;
|
||||
namespace Recyclarr.Cli.Command.Setup;
|
||||
|
||||
public interface IBaseCommandSetupTask
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
using Recyclarr.Logging;
|
||||
using Recyclarr.Cli.Logging;
|
||||
using Recyclarr.TrashLib.Config.Settings;
|
||||
using Serilog;
|
||||
using TrashLib.Config.Settings;
|
||||
|
||||
namespace Recyclarr.Command.Setup;
|
||||
namespace Recyclarr.Cli.Command.Setup;
|
||||
|
||||
public class JanitorCleanupTask : IBaseCommandSetupTask
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
using System.IO.Abstractions;
|
||||
using CliFx.Exceptions;
|
||||
using Recyclarr.TrashLib.Startup;
|
||||
using Serilog;
|
||||
using TrashLib.Startup;
|
||||
|
||||
namespace Recyclarr.Config;
|
||||
namespace Recyclarr.Cli.Config;
|
||||
|
||||
public class ConfigurationFinder : IConfigurationFinder
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Recyclarr.Config;
|
||||
namespace Recyclarr.Cli.Config;
|
||||
|
||||
public class EmptyYamlException : Exception
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Recyclarr.Config;
|
||||
namespace Recyclarr.Cli.Config;
|
||||
|
||||
public interface IConfigurationFinder
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using TrashLib.Config.Services;
|
||||
using Recyclarr.TrashLib.Config.Services;
|
||||
|
||||
namespace Recyclarr.Config;
|
||||
namespace Recyclarr.Cli.Config;
|
||||
|
||||
public interface IConfigurationLoader<T>
|
||||
where T : IServiceConfiguration
|
@ -1,4 +1,4 @@
|
||||
namespace Recyclarr.Logging;
|
||||
namespace Recyclarr.Cli.Logging;
|
||||
|
||||
public interface ILogJanitor
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using TrashLib.Startup;
|
||||
using Recyclarr.TrashLib.Startup;
|
||||
|
||||
namespace Recyclarr.Logging;
|
||||
namespace Recyclarr.Cli.Logging;
|
||||
|
||||
public class LogJanitor : ILogJanitor
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Recyclarr.Logging;
|
||||
namespace Recyclarr.Cli.Logging;
|
||||
|
||||
public static class LogProperty
|
||||
{
|
@ -1,11 +1,11 @@
|
||||
using System.IO.Abstractions;
|
||||
using Recyclarr.TrashLib.Startup;
|
||||
using Serilog;
|
||||
using Serilog.Events;
|
||||
using Serilog.Templates;
|
||||
using Serilog.Templates.Themes;
|
||||
using TrashLib.Startup;
|
||||
|
||||
namespace Recyclarr.Logging;
|
||||
namespace Recyclarr.Cli.Logging;
|
||||
|
||||
public class LoggerFactory
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Recyclarr.Migration;
|
||||
namespace Recyclarr.Cli.Migration;
|
||||
|
||||
public interface IMigrationExecutor
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using CliFx.Infrastructure;
|
||||
|
||||
namespace Recyclarr.Migration;
|
||||
namespace Recyclarr.Cli.Migration;
|
||||
|
||||
public interface IMigrationStep
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using Autofac;
|
||||
using Recyclarr.Migration.Steps;
|
||||
using Recyclarr.Cli.Migration.Steps;
|
||||
|
||||
namespace Recyclarr.Migration;
|
||||
namespace Recyclarr.Cli.Migration;
|
||||
|
||||
public class MigrationAutofacModule : Module
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Recyclarr.Migration;
|
||||
namespace Recyclarr.Cli.Migration;
|
||||
|
||||
public class MigrationException : Exception
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using CliFx.Exceptions;
|
||||
using CliFx.Infrastructure;
|
||||
|
||||
namespace Recyclarr.Migration;
|
||||
namespace Recyclarr.Cli.Migration;
|
||||
|
||||
public class MigrationExecutor : IMigrationExecutor
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
using System.IO.Abstractions;
|
||||
using CliFx.Infrastructure;
|
||||
using Common.Extensions;
|
||||
using JetBrains.Annotations;
|
||||
using TrashLib.Startup;
|
||||
using Recyclarr.Common.Extensions;
|
||||
using Recyclarr.TrashLib.Startup;
|
||||
|
||||
namespace Recyclarr.Migration.Steps;
|
||||
namespace Recyclarr.Cli.Migration.Steps;
|
||||
|
||||
/// <remarks>
|
||||
/// Implemented on 4/30/2022.
|
@ -0,0 +1,5 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Recyclarr.Common\Recyclarr.Common.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,8 +1,8 @@
|
||||
using Common.Extensions;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using Recyclarr.Common.Extensions;
|
||||
|
||||
namespace Common.Tests.Extensions;
|
||||
namespace Recyclarr.Common.Tests.Extensions;
|
||||
|
||||
[TestFixture]
|
||||
[Parallelizable(ParallelScope.All)]
|
@ -1,12 +1,12 @@
|
||||
using System.IO.Abstractions;
|
||||
using System.IO.Abstractions.TestingHelpers;
|
||||
using System.Text.RegularExpressions;
|
||||
using Common.Extensions;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using TestLibrary;
|
||||
using Recyclarr.Common.Extensions;
|
||||
using Recyclarr.TestLibrary;
|
||||
|
||||
namespace Common.Tests.Extensions;
|
||||
namespace Recyclarr.Common.Tests.Extensions;
|
||||
|
||||
[TestFixture]
|
||||
[Parallelizable(ParallelScope.All)]
|
@ -1,8 +1,8 @@
|
||||
using Common.Extensions;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using Recyclarr.Common.Extensions;
|
||||
|
||||
namespace Common.Tests.Extensions;
|
||||
namespace Recyclarr.Common.Tests.Extensions;
|
||||
|
||||
[TestFixture]
|
||||
[Parallelizable(ParallelScope.All)]
|
@ -1,11 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\TestLibrary\TestLibrary.csproj" />
|
||||
<ProjectReference Include="..\Common\Common.csproj" />
|
||||
<ProjectReference Include="..\Recyclarr.TestLibrary\Recyclarr.TestLibrary.csproj" />
|
||||
<ProjectReference Include="..\Recyclarr.Common\Recyclarr.Common.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
@ -1,7 +1,7 @@
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Common.Tests;
|
||||
namespace Recyclarr.Common.Tests;
|
||||
|
||||
[TestFixture]
|
||||
[Parallelizable(ParallelScope.All)]
|
@ -1,6 +1,6 @@
|
||||
using Autofac;
|
||||
|
||||
namespace Common;
|
||||
namespace Recyclarr.Common;
|
||||
|
||||
public class CommonAutofacModule : Module
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using System.Collections;
|
||||
|
||||
namespace Common.Extensions;
|
||||
namespace Recyclarr.Common.Extensions;
|
||||
|
||||
public static class CollectionExtensions
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Common.Extensions;
|
||||
namespace Recyclarr.Common.Extensions;
|
||||
|
||||
public static class DictionaryExtensions
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Common.Extensions;
|
||||
namespace Recyclarr.Common.Extensions;
|
||||
|
||||
public static class JsonNetExtensions
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using System.IO.Abstractions;
|
||||
|
||||
namespace Common;
|
||||
namespace Recyclarr.Common;
|
||||
|
||||
public class FileUtilities : IFileUtilities
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using FluentValidation;
|
||||
using FluentValidation.Results;
|
||||
|
||||
namespace Common.FluentValidation;
|
||||
namespace Recyclarr.Common.FluentValidation;
|
||||
|
||||
public static class FluentValidationExtensions
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using FluentValidation;
|
||||
using FluentValidation.Validators;
|
||||
|
||||
namespace Common.FluentValidation;
|
||||
namespace Recyclarr.Common.FluentValidation;
|
||||
|
||||
internal sealed class NullableChildValidatorAdaptor<T, TProperty> : ChildValidatorAdaptor<T, TProperty>,
|
||||
IPropertyValidator<T, TProperty?>, IAsyncPropertyValidator<T, TProperty?>
|
@ -1,4 +1,4 @@
|
||||
namespace Common;
|
||||
namespace Recyclarr.Common;
|
||||
|
||||
public interface IFileUtilities
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
using System.IO.Abstractions;
|
||||
using Common.Extensions;
|
||||
using Recyclarr.Common.Extensions;
|
||||
using Serilog;
|
||||
|
||||
namespace Common;
|
||||
namespace Recyclarr.Common;
|
||||
|
||||
public static class JsonUtils
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using Flurl.Http.Configuration;
|
||||
|
||||
namespace Common.Networking;
|
||||
namespace Recyclarr.Common.Networking;
|
||||
|
||||
public class UntrustedCertClientFactory : DefaultHttpClientFactory
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
|
||||
namespace Common;
|
||||
namespace Recyclarr.Common;
|
||||
|
||||
public class ResourceDataReader
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Common.YamlDotNet;
|
||||
namespace Recyclarr.Common.YamlDotNet;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property)]
|
||||
// ReSharper disable once UnusedType.Global
|
@ -1,7 +1,7 @@
|
||||
using YamlDotNet.Core.Events;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace Common.YamlDotNet;
|
||||
namespace Recyclarr.Common.YamlDotNet;
|
||||
|
||||
// from: https://github.com/aaubry/YamlDotNet/issues/236#issuecomment-632054372
|
||||
public sealed class ReadOnlyCollectionNodeTypeResolver : INodeTypeResolver
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue