Implement gen command, to generate samples.

This commit is contained in:
Kiyomichi Kosaka
2022-12-22 12:07:13 +00:00
parent b6c7b08320
commit e8345b374d
6 changed files with 72 additions and 6 deletions
+2 -3
View File
@@ -106,9 +106,8 @@ impl<'a> LKEval<'a> {
}
None => out.e(format!("error: password {} not found", name)),
},
Command::Enc(name) => {
self.cmd_enc(&out, name);
}
Command::Enc(name) => { self.cmd_enc(&out, name); }
Command::Gen(num, name) => self.cmd_gen(&out, &num, &name),
Command::PasteBuffer(command) => self.cmd_pb(&out, command),
Command::Source(script) => self.cmd_source(&out, script),
Command::Dump(script) => self.cmd_dump(&out, script),