ht.md

 1# ht (httpie-go)
 2
 3`ht` uses httpie-style `Header:Value` syntax. The request body is passed via stdin.
 4
 5## Examples
 6
 7```bash
 8# normal success
 9ht POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
10  "Authorization:Bearer $NTFY_ACCESS_TOKEN" \
11  "Title:Refactored authentication middleware in rumilo" \
12  "Tags:hammer_and_wrench" <<'EOF'
13Finished refactoring the auth middleware in rumilo. Session validation is cleaner now and all tests pass.
14EOF
15
16# success with a relevant click URL
17ht POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
18  "Authorization:Bearer $NTFY_ACCESS_TOKEN" \
19  "Title:Updated AUR package for kagi-ken" \
20  "Tags:package" \
21  "Click:https://aur.archlinux.org/packages/kagi-ken" <<'EOF'
22Bumped the kagi-ken AUR package to v0.4.2 and updated the checksums.
23EOF
24
25# something went wrong
26ht POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
27  "Authorization:Bearer $NTFY_ACCESS_TOKEN" \
28  "Title:Build failed in pi-mono — disk full" \
29  "Tags:rotating_light" \
30  "Priority:4" <<'EOF'
31Ran 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.
32EOF
33
34# urgent failure
35ht POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
36  "Authorization:Bearer $NTFY_ACCESS_TOKEN" \
37  "Title:Production database unreachable" \
38  "Tags:sos" \
39  "Priority:5" <<'EOF'
40The primary Postgres instance stopped responding during a migration. Rolled back what we could, but the app is down.
41EOF
42```