mirror of
https://github.com/nsnail/dot.git
synced 2025-06-19 22:08:16 +08:00
<adjust> * 多平台支持
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
#if NET7_0_WINDOWS
|
||||
using TextCopy;
|
||||
#endif
|
||||
|
||||
namespace Dot.Guid;
|
||||
|
||||
@ -11,8 +13,10 @@ public sealed class Main : ToolBase<Option>
|
||||
{
|
||||
var guid = System.Guid.NewGuid().ToString();
|
||||
if (Opt.Upper) guid = guid.ToUpper();
|
||||
ClipboardService.SetText(guid);
|
||||
Console.WriteLine(Str.Copied, guid);
|
||||
#if NET7_0_WINDOWS
|
||||
ClipboardService.SetText(guid);
|
||||
#endif
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user