mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Added base64 encoded attachment support (#966)
* Added base64 encoded attachment support * Added final * Added full RFC 2397 support * Added feedback * Update doc * Update signal-cli.1.adoc Co-authored-by: Sebastian Scheibner <asamk@gmx.de>
This commit is contained in:
parent
63e94a9fb4
commit
cb5e3c6bf7
6 changed files with 110 additions and 11 deletions
|
@ -55,7 +55,9 @@ public class SendCommand implements JsonRpcLocalCommand {
|
|||
mut.addArgument("--message-from-stdin")
|
||||
.action(Arguments.storeTrue())
|
||||
.help("Read the message from standard input.");
|
||||
subparser.addArgument("-a", "--attachment").nargs("*").help("Add file as attachment");
|
||||
subparser.addArgument("-a", "--attachment").nargs("*").help("Add an attachment. "
|
||||
+ "Can be either a file path or a data URI. Data URI encoded attachments must follow the RFC 2397. Additionally a file name can be added, e.g. "
|
||||
+ "data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED DATA>.");
|
||||
subparser.addArgument("-e", "--end-session", "--endsession")
|
||||
.help("Clear session state and send end session message.")
|
||||
.action(Arguments.storeTrue());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue