mirror of
https://github.com/nsnail/dot.git
synced 2025-06-19 22:08:16 +08:00
27 lines
707 B
C#
27 lines
707 B
C#
// ReSharper disable ClassNeverInstantiated.Global
|
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
|
|
|
namespace Dot.Pwd;
|
|
|
|
internal sealed class Option : OptionBase
|
|
{
|
|
[Flags]
|
|
public enum GenerateTypes
|
|
{
|
|
None = 0
|
|
, Number = 1
|
|
, LowerCaseLetter = 1 << 1
|
|
, UpperCaseLetter = 1 << 2
|
|
, SpecialCharacter = 1 << 3
|
|
}
|
|
|
|
[CommandArgument(1, "<password length>")]
|
|
[Description(nameof(Ln.PwdLength))]
|
|
[Localization(typeof(Ln))]
|
|
public int Length { get; set; }
|
|
|
|
[CommandArgument(0, "<generate type>")]
|
|
[Description(nameof(Ln.PwdGenerateTypes))]
|
|
[Localization(typeof(Ln))]
|
|
public GenerateTypes Type { get; set; }
|
|
} |