<refactor>

This commit is contained in:
2022-12-01 11:26:41 +08:00
parent 8b1265b832
commit 85944f23b4
20 changed files with 391 additions and 86 deletions

View File

@ -12,6 +12,6 @@ public sealed class Main : Tool<Option>
var guid = System.Guid.NewGuid().ToString();
if (Opt.Upper) guid = guid.ToUpper();
ClipboardService.SetText(guid);
Console.WriteLine($"已复制到剪贴板:{guid}");
Console.WriteLine(Strings.Copied, guid);
}
}

View File

@ -1,8 +1,8 @@
namespace Dot.Guid;
[Verb("guid", HelpText = "GUID工具")]
[Verb("guid", HelpText = nameof(Strings.GuidTool), ResourceType = typeof(Strings))]
public class Option : IOption
{
[Option('u', "upper", HelpText = "大写", Default = false)]
[Option('u', "upper", HelpText = nameof(Strings.UseUppercase), Default = false, ResourceType = typeof(Strings))]
public bool Upper { get; set; } //normal options here
}