Basic support of remembering correct passwords is implemented.

This commit is contained in:
Oleksandr Kozachuk
2022-12-17 21:29:59 +01:00
parent 573567928c
commit 1234c79db1
3 changed files with 67 additions and 8 deletions
+4
View File
@@ -21,6 +21,8 @@ peg::parser! {
/ enc_cmd()
/ pass_cmd()
/ unpass_cmd()
/ correct_cmd()
/ uncorrect_cmd()
/ noop_cmd()
/ comment_cmd()
) { c }
@@ -85,6 +87,8 @@ peg::parser! {
rule error_cmd() -> Command<'input> = "error" _ e:$(([' '..='~'])+) { Command::Error(LKErr::Error(e)) }
rule mv_cmd() -> Command<'input> = "mv" _ name:word() _ folder:word() { Command::Mv(name, folder) }
rule pass_cmd() -> Command<'input> = "pass" _ name:word() { Command::Pass(name) }
rule correct_cmd() -> Command<'input> = "correct" _ name:word() { Command::Correct(name) }
rule uncorrect_cmd() -> Command<'input> = "uncorrect" _ name:word() { Command::Uncorrect(name) }
rule unpass_cmd() -> Command<'input> = "unpass" _ name:word() { Command::UnPass(name) }
rule enc_cmd() -> Command<'input> = "enc" _ name:word() { Command::Enc(name) }
rule rm_cmd() -> Command<'input> = "rm" _ name:word() { Command::Rm(name) }