<refactor>

This commit is contained in:
2022-12-05 20:22:18 +08:00
parent 7a0efaf015
commit 3cb3b13f98
22 changed files with 70 additions and 25 deletions

View File

@ -5,7 +5,7 @@ using TextCopy;
namespace Dot.Text;
public sealed class Main : Tool<Option>
public sealed class Main : ToolBase<Option>
{
private ref struct Output
{
@ -108,7 +108,5 @@ html-decode: {o.HtmlDecode}
ParseAndShow(Opt.Text);
Console.Write(Str.PressAnyKey);
Console.ReadKey();
}
}

View File

@ -1,7 +1,7 @@
namespace Dot.Text;
[Verb("text", HelpText = nameof(Str.TextTool), ResourceType = typeof(Str))]
public class Option : IOption
public class Option : OptionBase
{
[Value(0, HelpText = nameof(Str.TextTobeProcessed), ResourceType = typeof(Str))]
public string Text { get; set; }