get command to return the entire vault or a single field #32

Closed
opened 2024-05-09 14:54:23 +02:00 by awiteb · 0 comments
Owner

This should remove the --get option from the list command.

Description

A command that returns the entire vault or a single field. The field can be:

  • index: The vault index.
  • name: The name of the vault.
  • username: The username field.
  • password: The password field.
  • service: The service field.
  • note: The note field.
  • <string>: A custom field with the given name as key.

Also you can get by the vault name or the vault index, when you get by name, the first match will be returned.

Example

$ lprs get "vault_name" # Returns the entire vault by its name
$ lprs get 10 # Returns the entire vault by index
$ lprs get 10 name # Returns the name of vault index 10
$ lprs get "server" "host" # Returns the custom field called "host" from vault called "server"
This should remove the `--get` option from the `list` command. ## Description A command that returns the entire vault or a single field. The field can be: - `index`: The vault index. - `name`: The name of the vault. - `username`: The `username` field. - `password`: The `password` field. - `service`: The `service` field. - `note`: The `note` field. - `<string>`: A custom field with the given name as key. Also you can get by the vault name or the vault index, when you get by name, the first match will be returned. ## Example ```bash $ lprs get "vault_name" # Returns the entire vault by its name $ lprs get 10 # Returns the entire vault by index $ lprs get 10 name # Returns the name of vault index 10 $ lprs get "server" "host" # Returns the custom field called "host" from vault called "server" ```
awiteb added this to the v2.0.0 milestone 2024-05-09 14:54:23 +02:00
awiteb added the
Kind/Feature
Reviewed
Accepted
labels 2024-05-09 14:54:23 +02:00
awiteb self-assigned this 2024-05-09 14:54:35 +02:00
awiteb referenced this issue from a commit 2024-05-10 09:00:16 +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#32
No description provided.