2025-01-28 05:04:21 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
go build -o tmp/intake
|
2025-01-28 05:54:46 +00:00
|
|
|
rm tmp/intake.db* || true
|
|
|
|
export INTAKE_DATA_DIR="tmp"
|
2025-01-28 05:04:21 +00:00
|
|
|
tmp/intake migrate
|
2025-01-29 17:13:48 +00:00
|
|
|
|
2025-01-28 05:04:21 +00:00
|
|
|
tmp/intake source add -s feedtest
|
|
|
|
tmp/intake item add -s feedtest --id "this-item-has-no-title"
|
|
|
|
tmp/intake item add -s feedtest --title "This item has only a title"
|
|
|
|
tmp/intake item add -s feedtest --title "Title and body" --body "This is the item body"
|
|
|
|
tmp/intake item add -s feedtest --title "Title and link" --link "#"
|
|
|
|
tmp/intake item add -s feedtest --title "Title, link, body" --link "#" --body "This is the body"
|
|
|
|
tmp/intake item add -s feedtest --title "<b>HTML title</b>" --link "#" --body "<i>HTML body</i>"
|
|
|
|
tmp/intake item add -s feedtest --title "Title and author" --author "Authorname"
|
|
|
|
tmp/intake item add -s feedtest --title "Title, author, time" --author "Authorname" --time 1700000000
|
|
|
|
tmp/intake item add -s feedtest --title "Title, time" --time 1737780324
|
|
|
|
tmp/intake item add -s feedtest --title "Title, author, body" --author "Authorname" --body "Hello body!"
|
|
|
|
tmp/intake item add -s feedtest --title "Title, author, time, body" --author "Authorname" --time 1700000000 --body "Hello body!"
|
|
|
|
tmp/intake item add -s feedtest --title "Title, time, body" --time 1737780324 --body "Hello, body!"
|
2025-01-29 17:13:48 +00:00
|
|
|
|
|
|
|
tmp/intake source add -s spook
|
|
|
|
tmp/intake action add -s spook -a spookier -- jq -c '.title = .title + "o"'
|
|
|
|
tmp/intake item add -s spook --id boo --title "Boo" --action '{"spookier": true}'
|