mirror of
https://github.com/nsnail/dot.git
synced 2025-06-20 06:18:15 +08:00
<chore>
This commit is contained in:
@ -5,31 +5,31 @@ namespace Dot;
|
||||
internal class DirOption : OptionBase
|
||||
{
|
||||
[CommandOption("-e|--exclude")]
|
||||
[Description(nameof(Str.ExcludePathRegexes))]
|
||||
[Localization(typeof(Str))]
|
||||
[Description(nameof(Ln.ExcludePathRegexes))]
|
||||
[Localization(typeof(Ln))]
|
||||
public IEnumerable<string> ExcludeRegexes { get; set; }
|
||||
|
||||
[CommandOption("-f|--filter")]
|
||||
[Description(nameof(Str.FileSearchPattern))]
|
||||
[Localization(typeof(Str))]
|
||||
[Description(nameof(Ln.FileSearchPattern))]
|
||||
[Localization(typeof(Ln))]
|
||||
[DefaultValue("*")]
|
||||
public string Filter { get; set; }
|
||||
|
||||
[CommandOption("-d|--max-depth")]
|
||||
[Description(nameof(Str.MaxRecursionDepth))]
|
||||
[Localization(typeof(Str))]
|
||||
[Description(nameof(Ln.MaxRecursionDepth))]
|
||||
[Localization(typeof(Ln))]
|
||||
[DefaultValue(int.MaxValue)]
|
||||
public int MaxRecursionDepth { get; set; }
|
||||
|
||||
[CommandArgument(0, "[path]")]
|
||||
[Description(nameof(Str.FolderPath))]
|
||||
[Localization(typeof(Str))]
|
||||
[Description(nameof(Ln.FolderPath))]
|
||||
[Localization(typeof(Ln))]
|
||||
[DefaultValue(".")]
|
||||
public string Path { get; set; }
|
||||
|
||||
[CommandOption("-w|--write")]
|
||||
[Description(nameof(Str.WriteMode))]
|
||||
[Localization(typeof(Str))]
|
||||
[Description(nameof(Ln.WriteMode))]
|
||||
[Localization(typeof(Ln))]
|
||||
[DefaultValue(false)]
|
||||
public bool WriteMode { get; set; }
|
||||
}
|
Reference in New Issue
Block a user