This commit is contained in:
2022-12-09 16:39:04 +08:00
parent f4b7c5d0ad
commit 0594ec1836
37 changed files with 276 additions and 183 deletions

View File

@ -1,6 +1,5 @@
namespace Dot.Pwd;
[Verb("pwd", HelpText = nameof(Str.RandomPasswordGenerator), ResourceType = typeof(Str))]
public class Option : OptionBase
{
[Flags]
@ -12,10 +11,15 @@ public class Option : OptionBase
, SpecialCharacter = 0b1000
}
[Value(1, Required = true, HelpText = nameof(Str.PwdLength), ResourceType = typeof(Str))]
[CommandArgument(1, "<password length>")]
[Description(nameof(Str.PwdLength))]
[Localization(typeof(Str))]
public int Length { get; set; }
[Value(0, Required = true, HelpText = nameof(Str.PwdGenerateTypes), ResourceType = typeof(Str))]
[CommandArgument(0, "<generate type>")]
[Description(nameof(Str.PwdGenerateTypes))]
[Localization(typeof(Str))]
public GenerateTypes Type { get; set; }
}