mirror of
https://github.com/nsnail/dot.git
synced 2025-06-19 13:58:16 +08:00
<refactor>
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
@ -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; }
|
||||
|
Reference in New Issue
Block a user