refactor: ♻️ 2.0 (#13)

This commit is contained in:
2023-12-13 18:43:53 +08:00
committed by GitHub
parent 247e35484c
commit 19f3405a36
288 changed files with 24348 additions and 2141 deletions

View File

@ -0,0 +1,31 @@
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable ClassNeverInstantiated.Global
namespace Dot.Git;
internal sealed class Option : OptionBase
{
[CommandOption("-a|--args")]
[Description(nameof(Ln.传递给Git的参数))]
[Localization(typeof(Ln))]
[DefaultValue("status")]
public string Args { get; set; }
[CommandOption("-e|--git-output-encoding")]
[Description(nameof(Ln.Git输出编码))]
[Localization(typeof(Ln))]
[DefaultValue("utf-8")]
public string Git输出编码 { get; set; }
[CommandOption("-d|--max-recursion-depth")]
[Description(nameof(Ln.目录检索深度))]
[Localization(typeof(Ln))]
[DefaultValue(int.MaxValue)]
public int MaxRecursionDepth { get; set; }
[CommandArgument(0, "[PATH]")]
[Description(nameof(Ln.要处理的目录路径))]
[Localization(typeof(Ln))]
[DefaultValue(".")]
public string Path { get; set; }
}