Store pass command without password to history.

This commit is contained in:
Oleksandr Kozachuk
2023-01-07 13:18:39 +01:00
parent 2b56aed28e
commit 54c2c0e5a1
+1
View File
@@ -124,6 +124,7 @@ impl<'a> LKEval<'a> {
quit = self.cmd_source(&out, script);
}
Command::Dump(script) => self.cmd_dump(&out, script),
Command::Pass(name, None) => self.cmd_pass(&out, &name, &None),
Command::Pass(name, pass) => { to_history = false; self.cmd_pass(&out, &name, &pass); },
Command::UnPass(name) => match self.state.lock().borrow_mut().secrets.remove(name) {
Some(_) => out.o(format!("Removed saved password for {}", name)),