mirror of
https://github.com/nsnail/dot.git
synced 2025-12-20 09:35:49 +08:00
<refactor> 移除 https://github.com/commandlineparser/commandline.git
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
namespace Dot.RmBom;
|
||||
|
||||
[Description(nameof(Str.TrimUtf8Bom))]
|
||||
[Localization(typeof(Str))]
|
||||
public sealed class Main : FilesTool<Option>
|
||||
{
|
||||
private readonly byte[] _utf8Bom = { 0xef, 0xbb, 0xbf };
|
||||
|
||||
|
||||
public Main(Option opt) : base(opt) { }
|
||||
|
||||
|
||||
private bool CloneFileWithoutBom(Stream fsr, ref string tempFile)
|
||||
{
|
||||
Span<byte> buffer = stackalloc byte[_utf8Bom.Length];
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace Dot.RmBom;
|
||||
|
||||
[Verb("rbom", HelpText = nameof(Str.TrimUtf8Bom), ResourceType = typeof(Str))]
|
||||
public class Option : DirOption { }
|
||||
Reference in New Issue
Block a user