Add update label name

This commit is contained in:
Nikola Petrov
2023-08-28 12:25:30 +02:00
parent 5767e9757c
commit a76b2f5885
3 changed files with 37 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ enum class Arg
Show, // show password for label
Error, // error
Username, // update username
Name, // update label name
};
Arg get_args(int argc, char** argv, char** label);
@@ -30,6 +31,8 @@ std::optional<LoginInfoPointer> arg_input(Buffer& decrypted_buffer, Buffer& encr
void arg_username(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
void arg_label_name(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
void arg_list(Buffer& decrypted_buffer);
void arg_delete(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);