mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #103] [CLI] read topic, priority, etc from environment variables or config file #84
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#84
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?
Originally created by @kzshantonu on GitHub (Jan 17, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/103
If a topic, priority, etc is not specified when using
ntfy publish, the CLI tool could read value from config file or environment. Could be handy for users who push to one topic most of the time@binwiederhier commented on GitHub (Jan 19, 2022):
The syntax for the publish command is this:
ntfy publish TOPIC [MESSAGE...], so you could write:Since topic is the first argument, it's quite impossible to leave it blank, e.g. this:
would not work, because the first argument is the topic, not the message. The best I could do is this:
but that's super ugly.
Thoughts?
@kzshantonu commented on GitHub (Jan 20, 2022):
I guess dot is easier to type
@binwiederhier commented on GitHub (Feb 2, 2022):
Implemented in
github.com/binwiederhier/ntfy@1552d8103eas