<adjust> * verb简化

This commit is contained in:
nsnail 2022-12-08 10:01:01 +08:00
parent de2e156fa5
commit 8b01483d85
7 changed files with 10 additions and 10 deletions

View File

@ -1,3 +1,3 @@
dot rm-bom -w
dot rm-blank -w
dot rbom -w
dot trim -w
dot tolf -w

View File

@ -1,4 +1,4 @@
using System.Collections.Concurrent;
using System.Collections.Concurrent;
using Panel = Spectre.Console.Panel;
namespace Dot;
@ -121,7 +121,8 @@ public abstract class FilesTool<TOption> : ToolBase<TOption> where TOption : Dir
var grid = new Grid().AddColumn(new GridColumn().NoWrap().PadRight(16))
.AddColumn(new GridColumn().Alignment(Justify.Right));
foreach (var kv in _writeStats) grid.AddRow(kv.Key, kv.Value.ToString());
foreach (var kv in _writeStats.OrderByDescending(x => x.Value).ThenBy(x => x.Key))
grid.AddRow(kv.Key, kv.Value.ToString());
AnsiConsole.Write(new Panel(grid).Header(Str.WriteFileStats));
}

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
id="root" xmlns="">

View File

@ -1,4 +1,4 @@
namespace Dot.RmBlank;
[Verb("rm-blank", HelpText = nameof(Str.RemoveTrailingWhiteSpaces), ResourceType = typeof(Str))]
[Verb("trim", HelpText = nameof(Str.RemoveTrailingWhiteSpaces), ResourceType = typeof(Str))]
public class Option : DirOption { }

View File

@ -1,4 +1,4 @@
namespace Dot.RmBom;
[Verb("rm-bom", HelpText = nameof(Str.TrimUtf8Bom), ResourceType = typeof(Str))]
[Verb("rbom", HelpText = nameof(Str.TrimUtf8Bom), ResourceType = typeof(Str))]
public class Option : DirOption { }

View File

@ -1,7 +1,6 @@
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Net.Sockets;
using Dot.Color;
namespace Dot.Time;

View File

@ -1,6 +1,6 @@
using System.Runtime.InteropServices;
namespace Dot.Color;
namespace Dot;
public static partial class Win32
{