mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[PR #1382] [MERGED] Add piping support #1586
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1586
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/1382
Author: @srevn
Created: 7/6/2025
Status: ✅ Merged
Merged: 7/6/2025
Merged by: @binwiederhier
Base:
main← Head:main📝 Commits (4)
6fbcd85Add piping support04aff72Add example and logging9ed96e5Small cosmetic fixes47da3aefix unbounded read📊 Changes
1 file changed (+19 additions, -0 deletions)
View changed files
📝
cmd/publish.go(+19 -0)📄 Description
The client will automatically detect piped input and use it as the message content when no explicit message is provided.
--file=-and doesn't break any existing functionalityExample :
echo "test message from stdin" | ntfy publish mytopic🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.