mirror of
https://github.com/nsnail/dot.git
synced 2025-06-17 21:13:21 +08:00
<adjust> * verb简化
This commit is contained in:
parent
de2e156fa5
commit
8b01483d85
@ -1,3 +1,3 @@
|
||||
dot rm-bom -w
|
||||
dot rm-blank -w
|
||||
dot rbom -w
|
||||
dot trim -w
|
||||
dot tolf -w
|
@ -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));
|
||||
}
|
||||
|
@ -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="">
|
||||
@ -188,4 +188,4 @@
|
||||
<data name="WriteFileStats" xml:space="preserve">
|
||||
<value>Write statistics</value>
|
||||
</data>
|
||||
</root>
|
||||
</root>
|
@ -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 { }
|
@ -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 { }
|
@ -1,7 +1,6 @@
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Net.Sockets;
|
||||
using Dot.Color;
|
||||
|
||||
namespace Dot.Time;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Dot.Color;
|
||||
namespace Dot;
|
||||
|
||||
public static partial class Win32
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user