From d4305b3f1f3e8996d47a4d201268977aeea751c7 Mon Sep 17 00:00:00 2001 From: nsnail Date: Mon, 12 Dec 2022 17:49:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=20+=20=E5=A4=9A=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AssemblyInfo.cs | 2 +- src/FilesTool.cs | 1 - src/Get/Main.cs | 183 +++++++++++++++++++++++++++++++++++++ src/Get/Option.cs | 36 ++++++++ src/Lang/Str.en-US.resx | 197 ++++++++++++++++++++++++---------------- src/Lang/Str.resx | 45 +++++++++ src/Program.cs | 1 + 7 files changed, 387 insertions(+), 78 deletions(-) create mode 100644 src/Get/Main.cs create mode 100644 src/Get/Option.cs diff --git a/src/AssemblyInfo.cs b/src/AssemblyInfo.cs index d2b7724..9f3ac12 100644 --- a/src/AssemblyInfo.cs +++ b/src/AssemblyInfo.cs @@ -15,7 +15,7 @@ namespace Dot; public static class AssemblyInfo { - private const string _VERSION = "1.1.5"; + private const string _VERSION = "1.1.6"; public const string ASSEMBLY_COMPANY = "nsnail"; public const string ASSEMBLY_COPYRIGHT = $"Copyright (c) 2022 {ASSEMBLY_COMPANY}"; public const string ASSEMBLY_FILE_VERSION = _VERSION; diff --git a/src/FilesTool.cs b/src/FilesTool.cs index c2bf8cf..f1b3f6f 100644 --- a/src/FilesTool.cs +++ b/src/FilesTool.cs @@ -1,6 +1,5 @@ using System.Collections.Concurrent; using System.Text.RegularExpressions; -using Panel = Spectre.Console.Panel; namespace Dot; diff --git a/src/Get/Main.cs b/src/Get/Main.cs new file mode 100644 index 0000000..87b2433 --- /dev/null +++ b/src/Get/Main.cs @@ -0,0 +1,183 @@ +using System.Net.Http.Headers; +using System.Text.RegularExpressions; +using NSExt.Extensions; + +namespace Dot.Get; + +[Description(nameof(Str.DownloadTool))] +[Localization(typeof(Str))] +public partial class Main : ToolBase