Files
dot/src/backend/Dot/Git/Option.cs
2023-12-13 18:43:53 +08:00

31 lines
948 B
C#

// 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; }
}