feat: Add get command #37

Merged
awiteb merged 3 commits from awiteb/get-command into master 2024-05-10 09:00:15 +02:00 AGit
Showing only changes of commit 8cf83c2775 - Show all commits

View file

@ -44,7 +44,7 @@ pub struct Gen {
impl LprsCommand for Gen { impl LprsCommand for Gen {
fn run(self, _vault_manager: Vaults) -> LprsResult<()> { fn run(self, _vault_manager: Vaults) -> LprsResult<()> {
println!( print!(
"{}", "{}",
passwords::PasswordGenerator::new() passwords::PasswordGenerator::new()
.length(self.length.get() as usize) .length(self.length.get() as usize)
@ -52,7 +52,7 @@ impl LprsCommand for Gen {
.lowercase_letters(self.lowercase) .lowercase_letters(self.lowercase)
.numbers(self.numbers) .numbers(self.numbers)
.symbols(self.symbols) .symbols(self.symbols)
.strict(true) .strict(false)
.generate_one() .generate_one()
.expect("The length cannot be zero") .expect("The length cannot be zero")
); );