Expand description
bw send command implementation.
Dispatches the subcommands declared on SendArgs / SendCommands in
super to the underlying bitwarden_send::SendClient methods. The arg
parsing surface is intentionally defined in super so the legacy-CLI shape
(which is part of the user contract) stays close to the rest of the
tools family.
StructsΒ§
- Create
Inputs π - Edit
Overrides π - Send
Args - Send
Create Args - Send
Delete Args - Send
Edit Args - Send
File πTemplate - Send
File πTemplate Body - Send
GetArgs - Send
List Args - Send
Receive Args - Send
Remove Password Args - Send
Template Args - Send
Text πTemplate - Send
Text πTemplate Body
EnumsΒ§
ConstantsΒ§
- DELETE_
IN_ πDAYS_ ALLOWED - Allowed values for
--deleteInDays, matching the legacy CLIβs enumerated set. Kept as strings soPossibleValuesParsercan surface them in--helpoutput.
FunctionsΒ§
- build_
access_ πurl - Build the shareable Send access URL from a decrypted
bitwarden_send::SendView. - build_
auth π - build_
auth_ πfor_ edit - Build the
authfield for aSendEditRequest. - build_
create_ πrequest - build_
edit_ πrequest - compute_
deletion_ πdate - create_
shortcut π - delete_
in_ πdays_ parser - Clap value parser for
--deleteInDays. Restricts input to the legacy-CLI allowed set (also surfaced in--help) and maps it back to theu64field type. - finalize_
emails π - get_
send π - list_
sends π - parse_
emails π - Parse the
--emailsargument into a list of email addresses. - render_
template π - rewrite_
api_ πhost_ to_ vault - Rewrite a leading
api.host label tovault.in ascheme://host[/path]URL, e.g.https://api.bitwarden.com->https://vault.bitwarden.com. ReturnsNonewhen the URL has no scheme or the host does not start with theapi.label (soapiary.example.comis not rewritten). - run_
create π - to_
url_ πb64 - Convert standard base64 to URL-safe base64 without padding.
- web_
vault_ πfrom_ api_ url - Derive the web-vault base from an API URL when no web-vault/server URL is configured (the
bw login --serverand cloud paths). Pure so it can be unit-tested without a live client. - web_
vault_ πurl - Resolve the web-vault base URL that
/#/send/<access_id>/<url_b64_key>is appended to.