Skip to content

fix: honor '-' as stdin sentinel for message-text argument#17

Merged
jonathanlam merged 1 commit into
mainfrom
fix/message-send-stdin-dash-arg
Jul 23, 2026
Merged

fix: honor '-' as stdin sentinel for message-text argument#17
jonathanlam merged 1 commit into
mainfrom
fix/message-send-stdin-dash-arg

Conversation

@jonathanlam

@jonathanlam jonathanlam commented Jul 23, 2026

Copy link
Copy Markdown
Member
  • message send/message edit only treated - as "read from stdin" when passed via --file; a bare positional - (the form shown in SLACK_CLI_USAGE.md) was sent as the literal string -.
  • resolveMessageText now reads stdin when the positional text argument is -, matching the documented message send <target> - <<EOF ... EOF usage.
  • Added a regression test (cmd/message_test.go) covering this case, since none existed for message.go previously.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…gument

resolveMessageText only treated '-' as "read from stdin" when passed via
--file, so `message send <target> - <<EOF ... EOF` silently sent the
literal string "-" instead of the heredoc body, contradicting the
documented usage.
@jonathanlam jonathanlam added the patch Patch version updates (fixes) label Jul 23, 2026
@jonathanlam
jonathanlam marked this pull request as ready for review July 23, 2026 22:25
@jonathanlam
jonathanlam merged commit 88d4fea into main Jul 23, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Patch version updates (fixes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant