bitwardenAttachmentByRef filename args
bitwardenAttachmentByRef returns a document from
Bitwarden using the Bitwarden
CLI (bw). This method requires two
calls to bw to complete:
- First, args are passed to
bw getin order to retrieve the item's itemid. - Then, filename and itemid are passed to
bw get attachment $FILENAME --itemid $ITEMIDand the output frombwis returned.
The output from bw is cached so calling bitwardenAttachmentByRef multiple
times with the same filename and itemid will only invoke bw once.
Example
{{- bitwardenAttachmentByRef "$FILENAME" "$ARGS" -}}
Example
{{- bitwardenAttachmentByRef "id_rsa" "item" "example.com" -}}