doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
573 stars 82 forks source link

Support UUIDs and URIs in code command #169

Closed robertgzr closed 1 month ago

robertgzr commented 2 months ago

a864366e60f6e7ae67df91010d7e30f3b1569ac0 changed the implementation of find_entry to work on the new Needle type, but when calling into it from the code subcommand the provided string was only passed as a Needle::Name when in fact also UUIDs are allowed.

Remedy this by parsing the first argument in the same way as with the get command, which also enables passing URIs

Signed-off-by: Robert Günzler r@gnzler.io