9 lines
202 B
Bash
Executable File
9 lines
202 B
Bash
Executable File
#!/bin/bash
|
|
# wq_get — get single work item
|
|
|
|
wq_get() {
|
|
local work_id="$1"
|
|
[[ -z "$work_id" ]] && { echo "Usage: wq get <work_item_id>" >&2; exit 1; }
|
|
curl -sf "$API_URL/work/$work_id" | jq .
|
|
}
|