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