Validate the command args before ask for the master password #13

Closed
opened 2024-04-24 09:59:58 +02:00 by awiteb · 0 comments
Owner

Feature description

Sometimes the entered command args is kindly wrong, for example in the add command you can't create an empty vault

https://git.4rs.nl/awiteb/lprs/src/branch/master/src/cli/add_command.rs#L33-L39

So, I think we must validate the args before ask for the master password here (we should ask for the master password when we are sure that the command will run successfully)

https://git.4rs.nl/awiteb/lprs/src/branch/master/src/cli/mod.rs#L61-L67

## Feature description Sometimes the entered command args is kindly wrong, for example in the `add` command you can't create an empty vault https://git.4rs.nl/awiteb/lprs/src/branch/master/src/cli/add_command.rs#L33-L39 So, I think we must validate the args before ask for the master password here (we should ask for the master password when we are sure that the command will run successfully) https://git.4rs.nl/awiteb/lprs/src/branch/master/src/cli/mod.rs#L61-L67
awiteb added the
Kind/Feature
Reviewed
Accepted
Good First Issue
labels 2024-04-24 09:59:58 +02:00
awiteb changed title from [Feature request]: Validate the command args before ask for the master password to Validate the command args before ask for the master password 2024-04-24 10:19:15 +02:00
awiteb added this to the v2.0.0 milestone 2024-05-10 13:07:51 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: awiteb/lprs#13
No description provided.