From dc2f8855d20864d5c3ecfa9f1e853c262a395bf6 Mon Sep 17 00:00:00 2001 From: tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Thu, 26 Mar 2026 23:49:17 +0200 Subject: [PATCH] Renames --- DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs | 4 ++-- ...ndingConverter.cs => ThreadInclusionModeInputConverter.cs} | 2 +- ...leanBindingConverter.cs => TruthyBooleanInputConverter.cs} | 2 +- DiscordChatExporter.Cli/Commands/GetChannelsCommand.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename DiscordChatExporter.Cli/Commands/Converters/{ThreadInclusionModeBindingConverter.cs => ThreadInclusionModeInputConverter.cs} (88%) rename DiscordChatExporter.Cli/Commands/Converters/{TruthyBooleanBindingConverter.cs => TruthyBooleanInputConverter.cs} (89%) diff --git a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs index c86ec2b9..2b3c8400 100644 --- a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs +++ b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs @@ -66,7 +66,7 @@ public abstract class ExportCommandBase : DiscordCommandBase [CommandOption( "include-threads", Description = "Which types of threads should be included.", - Converter = typeof(ThreadInclusionModeBindingConverter) + Converter = typeof(ThreadInclusionModeInputConverter) )] public ThreadInclusionMode ThreadInclusionMode { get; set; } = ThreadInclusionMode.None; @@ -141,7 +141,7 @@ public abstract class ExportCommandBase : DiscordCommandBase EnvironmentVariable = "FUCK_RUSSIA", Description = "Don't print the Support Ukraine message to the console.", // Use a converter to accept '1' as 'true' to reuse the existing environment variable - Converter = typeof(TruthyBooleanBindingConverter) + Converter = typeof(TruthyBooleanInputConverter) )] public bool IsUkraineSupportMessageDisabled { get; set; } = false; diff --git a/DiscordChatExporter.Cli/Commands/Converters/ThreadInclusionModeBindingConverter.cs b/DiscordChatExporter.Cli/Commands/Converters/ThreadInclusionModeInputConverter.cs similarity index 88% rename from DiscordChatExporter.Cli/Commands/Converters/ThreadInclusionModeBindingConverter.cs rename to DiscordChatExporter.Cli/Commands/Converters/ThreadInclusionModeInputConverter.cs index 8a4a385f..716e2539 100644 --- a/DiscordChatExporter.Cli/Commands/Converters/ThreadInclusionModeBindingConverter.cs +++ b/DiscordChatExporter.Cli/Commands/Converters/ThreadInclusionModeInputConverter.cs @@ -4,7 +4,7 @@ using DiscordChatExporter.Cli.Commands.Shared; namespace DiscordChatExporter.Cli.Commands.Converters; -internal class ThreadInclusionModeBindingConverter : ScalarInputConverter +internal class ThreadInclusionModeInputConverter : ScalarInputConverter { public override ThreadInclusionMode Convert(string? rawValue) { diff --git a/DiscordChatExporter.Cli/Commands/Converters/TruthyBooleanBindingConverter.cs b/DiscordChatExporter.Cli/Commands/Converters/TruthyBooleanInputConverter.cs similarity index 89% rename from DiscordChatExporter.Cli/Commands/Converters/TruthyBooleanBindingConverter.cs rename to DiscordChatExporter.Cli/Commands/Converters/TruthyBooleanInputConverter.cs index 23ebd1fb..33977b9c 100644 --- a/DiscordChatExporter.Cli/Commands/Converters/TruthyBooleanBindingConverter.cs +++ b/DiscordChatExporter.Cli/Commands/Converters/TruthyBooleanInputConverter.cs @@ -3,7 +3,7 @@ using CliFx.Activation; namespace DiscordChatExporter.Cli.Commands.Converters; -internal class TruthyBooleanBindingConverter : ScalarInputConverter +internal class TruthyBooleanInputConverter : ScalarInputConverter { public override bool Convert(string? rawValue) { diff --git a/DiscordChatExporter.Cli/Commands/GetChannelsCommand.cs b/DiscordChatExporter.Cli/Commands/GetChannelsCommand.cs index 86fefcac..b0116ed7 100644 --- a/DiscordChatExporter.Cli/Commands/GetChannelsCommand.cs +++ b/DiscordChatExporter.Cli/Commands/GetChannelsCommand.cs @@ -23,7 +23,7 @@ public partial class GetChannelsCommand : DiscordCommandBase [CommandOption( "include-threads", Description = "Which types of threads should be included.", - Converter = typeof(ThreadInclusionModeBindingConverter) + Converter = typeof(ThreadInclusionModeInputConverter) )] public ThreadInclusionMode ThreadInclusionMode { get; set; } = ThreadInclusionMode.None;