mirror of
https://github.com/nsnail/dot.git
synced 2025-06-20 06:18:15 +08:00
<refactor>
This commit is contained in:
21
src/Pwd/Option.cs
Normal file
21
src/Pwd/Option.cs
Normal file
@ -0,0 +1,21 @@
|
||||
namespace Dot.Pwd;
|
||||
|
||||
[Verb("pwd", HelpText = nameof(Strings.RandomPasswordGenerator), ResourceType = typeof(Strings))]
|
||||
public class Option : IOption
|
||||
{
|
||||
[Flags]
|
||||
public enum GenerateTypes
|
||||
{
|
||||
Number = 1
|
||||
, LowerCaseLetter = 2
|
||||
, UpperCaseLetter = 4
|
||||
, SpecialCharacter = 8
|
||||
}
|
||||
|
||||
[Value(1, Required = true, HelpText = nameof(Strings.PwdLength), ResourceType = typeof(Strings))]
|
||||
public int Length { get; set; }
|
||||
|
||||
|
||||
[Value(0, Required = true, HelpText = nameof(Strings.PwdGenerateTypes), ResourceType = typeof(Strings))]
|
||||
public GenerateTypes Type { get; set; }
|
||||
}
|
Reference in New Issue
Block a user