Skip to content

feat(cli): send --html/--html-file/--dry-run - #31

Open
sinjab wants to merge 1 commit into
mingnz:mainfrom
sinjab:feat/html-send
Open

sinjab wants to merge 1 commit into
mingnz:mainfrom
sinjab:feat/html-send

Conversation

@sinjab

@sinjab sinjab commented Oct 15, 2026

Copy link
Copy Markdown

Plain send wraps text in a single <p>, so multi-line drafts collapse to one line in the Teams client. This adds an explicit HTML lane: --html '<div><p>line 1<br>line 2</p></div>' (or --html-file, or --html - for stdin) posts caller-owned HTML verbatim with RichText/Html; --dry-run prints the exact request body without sending. Plain mode is byte-for-byte unchanged. The send path is split into buildMessageBody (pure) + postMessage (transport) — the foundation the follow-up file-attachment PR builds on. 16 new tests.

HTML mode posts caller-owned HTML verbatim (RichText/Html, no <p> wrap);
'-' reads stdin; --dry-run prints the exact body without sending. Plain
mode byte-for-byte unchanged. Send path split into buildMessageBody
(pure) + postMessage (transport) — the foundation for the attachments
PR. Implemented via claude relay lane (dispatch 62DFF778), reviewed +
live-tested by the calling session (receipt 1792066772884).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants