mirror of
https://github.com/nsnail/dot.git
synced 2025-08-06 00:02:27 +08:00
refactor: ♻️ 2.0 (#13)
This commit is contained in:
31
src/backend/Dot/Git/Option.cs
Normal file
31
src/backend/Dot/Git/Option.cs
Normal 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; }
|
||||
}
|
Reference in New Issue
Block a user