ht (httpie-go)
ht uses httpie-style Header:Value syntax. The request body is passed via stdin.
Examples
# normal success
ht POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
"Authorization:Bearer $NTFY_ACCESS_TOKEN" \
"Title:Refactored authentication middleware in rumilo" \
"Tags:hammer_and_wrench" <<'EOF'
Finished refactoring the auth middleware in rumilo. Session validation is cleaner now and all tests pass.
EOF
# success with a relevant click URL
ht POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
"Authorization:Bearer $NTFY_ACCESS_TOKEN" \
"Title:Updated AUR package for kagi-ken" \
"Tags:package" \
"Click:https://aur.archlinux.org/packages/kagi-ken" <<'EOF'
Bumped the kagi-ken AUR package to v0.4.2 and updated the checksums.
EOF
# something went wrong
ht POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
"Authorization:Bearer $NTFY_ACCESS_TOKEN" \
"Title:Build failed in pi-mono — disk full" \
"Tags:rotating_light" \
"Priority:4" <<'EOF'
Ran into a full disk on the build server while compiling pi-mono. /var/log looks like it needs rotation. The build is blocked until there's space.
EOF
# urgent failure
ht POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
"Authorization:Bearer $NTFY_ACCESS_TOKEN" \
"Title:Production database unreachable" \
"Tags:sos" \
"Priority:5" <<'EOF'
The primary Postgres instance stopped responding during a migration. Rolled back what we could, but the app is down.
EOF