mirror of
https://github.com/nsnail/dot.git
synced 2025-06-17 21:13:21 +08:00
17 lines
369 B
C#
17 lines
369 B
C#
using TextCopy;
|
|
|
|
namespace Dot.Guid;
|
|
|
|
public sealed class Main : Tool<Option>
|
|
{
|
|
public Main(Option opt) : base(opt) { }
|
|
|
|
|
|
public override void Run()
|
|
{
|
|
var guid = System.Guid.NewGuid().ToString();
|
|
if (Opt.Upper) guid = guid.ToUpper();
|
|
ClipboardService.SetText(guid);
|
|
Console.WriteLine(Strings.Copied, guid);
|
|
}
|
|
} |