feat(skill): cover full API — projects, delete, health, all WorkCreate fields
All checks were successful
ci / build-test-push (push) Successful in 1m26s
All checks were successful
ci / build-test-push (push) Successful in 1m26s
This commit is contained in:
11
skill/bin/wq_project_get
Executable file
11
skill/bin/wq_project_get
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# wq_project_get — get a single project
|
||||
|
||||
API_URL="${WORK_QUEUE_API_URL:-}"
|
||||
[[ -z "$API_URL" ]] && API_URL=$(cat ~/.config/work_queue_api_url 2>/dev/null || echo "")
|
||||
[[ -z "$API_URL" ]] && { echo "Error: WORK_QUEUE_API_URL not set" >&2; exit 1; }
|
||||
|
||||
project_id="$1"
|
||||
[[ -z "$project_id" ]] && { echo "Usage: wq project get <project_id>" >&2; exit 1; }
|
||||
|
||||
curl -sf "$API_URL/projects/$project_id" | jq .
|
||||
Reference in New Issue
Block a user