mirror of
https://github.com/nsnail/dot.git
synced 2025-06-20 06:18:15 +08:00
<feat> + 目录检索设置
This commit is contained in:
@ -2,9 +2,17 @@ namespace Dot;
|
||||
|
||||
public class DirOption : OptionBase
|
||||
{
|
||||
[Option('f', "filter", HelpText = nameof(Str.FileSearchPattern), Default = "*.*", ResourceType = typeof(Str))]
|
||||
[Option('e', "exclude", HelpText = nameof(Str.ExcludePathRegexes), ResourceType = typeof(Str))]
|
||||
public IEnumerable<string> ExcludeRegexes { get; set; }
|
||||
|
||||
[Option('f', "filter", HelpText = nameof(Str.FileSearchPattern), Default = "*", ResourceType = typeof(Str))]
|
||||
public string Filter { get; set; }
|
||||
|
||||
|
||||
[Option('d', "max-depth", HelpText = nameof(Str.MaxRecursionDepth), Default = int.MaxValue
|
||||
, ResourceType = typeof(Str))]
|
||||
public int MaxRecursionDepth { get; set; }
|
||||
|
||||
[Value(0, HelpText = nameof(Str.FolderPath), Default = ".", ResourceType = typeof(Str))]
|
||||
public string Path { get; set; }
|
||||
|
||||
|
Reference in New Issue
Block a user